|
» Component » Label » Button » CheckBox » ComboBox » TextField » PasswordField » TextArea » TabbedPane » Panel » Desktop » Dialog » SpinBox » ProgressBar » Slider » SplitPane » List » Table » Tree » Separator » MenuBar
|
|
|
Table
A table presents data in a two-dimensional table format, allows to select
rows, has header, and internally handles scrolling.
The following example table includes two columns ('A', and 'B'), and
two rows, the first row is selected, but allows to select multiple rows.
<table selection="multiple">
<column text="A" width="24" /><column text="B" />
<row selected="true">
<cell text="a1" /><cell text="b1" enabled="false" />
</row>
<row>
<cell text="a2" /><cell text="b2" />
</row>
</table> |
Parameters
Name | Type | Default | Description | selection | choice | single |
Possible values are: single, interval, and multiple. The default
single value allows to select one row at a time, the interval
value to select one contiguous range of rows, and the multiple
value to select one or more contiguous ranges of rows.
|
action | method | null |
Calls the method whenever the selection changes.
|
name, enabled, visible, tooltip, width, height, colspan, rowspan,
weightx, weighty, halign, and valign parameters are similar to component
|
Column
Table header includes the column texts, these items defines the column
widths. The key for the list of columns is 'column'.
Parameters
Name | Type | Default | Description | width | integer | 80 |
The width of the column.
|
name, text, icon, and alignment parameters are described at label
|
Row
Table contains rows (and columns for the header),
and row contains cells. The 'row' key identifies the list of rows.
An entire row (not cell) is selectable in a table.
Parameters
Name | Type | Default | Description | selected | boolean | false |
True if currently selected the entire row.
|
Cell
Cell displays a short text and icon, its height is equals with the
row's height, and its width is defined in the header column.
Parameters
Name | Type | Default | Description |
name, enabled, text, icon, and alignment parameters are similar to combobox choice
|
Keyboard-actions
Operation | Action | Up arrow | Selects previous row |
Down arrow | Selects next row |
Home | Selects first row |
End | Selects last row |
Page Up | Selects row one view up |
Page Down | Selects row one view down |
+Shift | Extends selection |
+Ctrl | Set lead row |
Space | Selects lead row |
Ctrl-A, Ctrl-Slash | Selects all |
Ctrl-Backslash | Deselects all |
Tab, Shift-Tab | Navigate forward, backward |
|