F O R · R E A L L Y · T H I N · C L I E N T S
 Home  |  Overview  |  Widgets  |  Demo  |  License  |  History 

» 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
NameTypeDefaultDescription
selectionchoicesingle 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.
actionmethodnull 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
NameTypeDefaultDescription
widthinteger80 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
NameTypeDefaultDescription
selectedbooleanfalse 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
NameTypeDefaultDescription
name, enabled, text, icon, and alignment parameters are similar to combobox choice

Keyboard-actions
OperationAction
Up arrowSelects previous row
Down arrowSelects next row
HomeSelects first row
EndSelects last row
Page UpSelects row one view up
Page DownSelects row one view down
+ShiftExtends selection
+CtrlSet lead row
SpaceSelects lead row
Ctrl-A, Ctrl-SlashSelects all
Ctrl-BackslashDeselects all
Tab, Shift-TabNavigate forward, backward

Copyright © 2002 Robert Bajzat - info@thinlet.com - All rights reserved.