Class of hierarchical multi-column lists (tree view).
UITree([<nTreeColumn>],<acNameColumns>) --> UITree object
<className> | - Class name. Value should be "UITree". |
<nodes> | - Array of arrays. Array of values. Each records contains array of strings of values by columns. |
<nodesId> | - Array of strings. Array of tree node identifiers. |
<onSelect> | - Code block. Action that will be call on row selection by double click or 'Enter' key pressed. |
ADDNODE | Add node to tree view. |
CLEAR | Clear tree: remove all nodes. |
GETSELECTION | Get index of selected node. Numbering is begun from 1. |
GETSELECTIONID | Get identifier of selected node. |
SETACTION | Set action that will be executed if tree node selected by double click or 'Enter' key pressed. |
UITREE | Constructor. Create tree view. |
tree := UITree(1, {"N1","N2"}) node1 := tree:addNode({"Node1", "node1111"}) node11 := tree:addNode({"Node2"}) node2 := tree:addNode({"Leaf1"},, node1)
Andrey Cherepanov <<skull@eas.lrn.ru>>
No dependies of platform.
Add node to tree view.
addNode(<columns>,[<id>],[<parent>],[<sibling>],[<expanded>]) --> <oNode>
Object of tree node, that may be used as parent node.
Clear tree: remove all nodes.
clear()
No arguments
Returns NIL.
Get index of selected node. Numbering is begun from 1.
getSelection() --> <nNode>
No arguments
Selected node. Numbering is begun from 1.
Get identifier of selected node.
getSelectionId() --> <id>
No arguments
Identifier of selected node.
Set action that will be executed if tree node selected by double click or 'Enter' key pressed.
setAction(<action>)
Returns NIL.
Constructor. Create tree view.
UITree([<nTreeColumn>],<acNameColumns>) --> UITree object
Returns NIL.