Class UITABLE

Name

UITABLE  --  Class of table (multicolumn list).

Synopsis

 UITable(<columns>)	--> UITable object
 
 
 
 
 

Description

Class UITable

Attributes

<className> - Class name. Value should be "UITable".
<nodes> - Accociated array of UITableItem objects.
<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.

Methods

ADDROW Add row into table.
CLEAR Clear table: remove all rows.
GETSELECTION Get selected row identifier.
GETSELECTIONID Get user identifier of selected row.
RESTOREPOSITION Restore saved row position.
SAVEPOSITION Get current selected row position.
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.

Method UITABLE:ADDROW()

 addRow(data,[<id>])	--> <oTableItem>

Method UITABLE:CLEAR()

 clear()

Method UITABLE:GETSELECTION()

 getSelection()	--> <sRow>

Method UITABLE:GETSELECTIONID()

 getSelectionId()	--> <sRow>

Method UITABLE:RESTOREPOSITION()

 restorePosition(<aPos>)

Method UITABLE:SAVEPOSITION()

 savePosition()	--> <aPos>

Method UITABLE:SETACTION()

 setAction([<signal>],<action>)

Method UITABLE:SETALTROWCOLOR()

 setAltRowColor(<color>)

Method UITABLE:UITABLE()

 UITable(<columns>)	--> UITable object

Example:

 table := UITable({"No","Date","Payee","Sum"})
 table:setAltRowColor("#cbe8ff")
 table:addRow({"1","20.10.03",'"John Corp."',"20000.00"})
 

See also

UITABLEITEM

Platforms

No dependies of platform.