Class of table (multicolumn list).
UITable(<columns>) --> UITable object
<className> | - Class name. Value should be "UITable". |
<rows> | - Array of array. Array of values. Each records contains array of strings of values by columns. |
<rowsId> | - Array of strings. Array of row identifiers. |
<onSelect> | - Code block. Action that will be call on row selection by double click or 'Enter' key pressed. |
<altRowColor> | - UIColor object. Alternative color for even rows in table. Default value defined in macro variable ALT_TABLE_ROW_COLOR, that is defined in file clip-ui.ch. |
ADDROW | Add row into table. |
CLEAR | Clear table: remove all rows. |
GETSELECTION | Get selected row number. |
GETSELECTIONID | Get identifier of selected row. |
SETACTION | Set action that will be call on selection by double click or 'Enter' key pressed. |
SETALTROWCOLOR | Set alternative color for even rows in table. |
UITABLE | Constructor. Create table. |
table := UITable({"No","Date","Payee","Sum"}) table:setAltRowColor("#cbe8ff") table:addRow({"1","20.10.03",'"John Corp."',"20000.00"})
Andrey Cherepanov <<skull@eas.lrn.ru>>
No dependies of platform.
Add row into table.
addRow(data,[<id>])
Returns NIL.
Clear table: remove all rows.
clear()
No arguments
Returns NIL.
Get selected row number.
getSelection() --> <nRow>
No arguments
Number of selected row. Numbering is began from 1.
Get identifier of selected row.
getSelectionId() --> <sRow>
No arguments
The identifier of selected row.
Set action that will be call on selection by double click or 'Enter' key pressed.
setAction(<action>)
Returns NIL.
Set alternative color for even rows in table.
setAltRowColor(<color>)
<color> | - UIColor object. Alternative color for even rows in table. |
Returns NIL.
Constructor. Create table.
UITable(<columns>) --> UITable object
Returns NIL.