2.62 .content[index]
In a tablefield, .content[I,J] is used to change the contents of any cell indicated by [row, column].
For the listview, the attribute defines the list items.
Definition
-
Data type
string, object [ text ]
-
Access
get, set
-
changed event
yes
In a tablefield, .content[I,J] is used to change the contents of any cell indicated by [row, column]. The attribute may also be used to change or query row and column headers. Thus .content[I,J] also comprises the attribute .field[index].
This attribute is not passed on from the model to its instances.
Note on the IDM for Motif
The Motif tablefield ignores leading line breaks in table cells (one ore more \n at the beginning of texts). To display empty lines before a text however, a space character may be inserted into the text before the line breaks.
Example: " \nXYZ"
"\nXYZ"
.
The attribute defines the list items of the listview.
set
), values of the data type string and text resources can be specified.
Read access (get
) always returns a value of the data type string.
The value range of the index is [0,1] … [.rowcount,.colcount], where the value with index [0,C] is used as default value for not set values in the range [1,C] … [.rowcount,C].
Column 1 is the caption of the list item that will be shown in all views. The other columns are only displayed in the detail view.
If no content is defined for .content[R,C] and no default value .content[0,C] is set, then nothing is displayed, but the item still exists.
Note
Changing the attribute in the visible state may cause the object to flicker.
See also