Tango ATK Tutorial
Tango ATK Tutorial
Tango ATK Tutorial
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
StringImage attributes<br />
By string image attribute we mean any <strong>Tango</strong> Attribute whose format is “Image” (2<br />
dimensional array) and whose data type is DevString.<br />
The StringImageTableViewer is used to view a StringImage attribute (a 2 dimensional array<br />
of string). Each element of the attribute array will be displayed in a cell in a swing JTable.<br />
The following code sample illustrates the use of the StringImageTableViewer.<br />
IStringImage isi;<br />
AttributeList attl = new AttributeList();<br />
StringImageTableViewer sitv = new StringImageTableViewer ();<br />
Try<br />
{<br />
isi = (IStringImage) attl.add("my/test/dev/att_str_image");<br />
sitv.setAttModel(isi);<br />
}<br />
catch (Exception ex)<br />
{<br />
System.out.println("Cannot connect device");<br />
ex.printStackTrace();<br />
}<br />
<strong>ATK</strong> does not provide any component for setting a StringImage attribute.