Class UITREE

Name

UITREE  --  Class of hierarchical multi-column lists (tree view).

Synopsis

 UITree([<nTreeColumn>],<acNameColumns>)	--> UITree object
 
 
 
 

Description

Class UITree

Attributes

<className> - Class name. Value should be "UITree".
<nodes> - Accociated array of UITreeItem objects.
<onSelect> - Code block. Action that will be call on row selection by double click or 'Enter' key pressed.

Methods

ADDNODE Add node to tree view.
CLEAR Clear tree: remove all nodes.
GETSELECTION Get identifier of selected node.
GETSELECTIONID Get user identifier of selected node.
RESTOREPOSITION Restore saved row position.
SAVEPOSITION Get current selected row position.
SETACTION Set action that will be executed if tree node selected by double click or 'Enter' key pressed.
UITREE Constructor. Create tree view.

Method UITREE:ADDNODE()

 addNode(<columns>,[<id>],[<parent>],[<sibling>],[<expanded>])	--> <oNode>

Method UITREE:CLEAR()

 clear()

Method UITREE:GETSELECTION()

 getSelection()	--> <sNode>

Method UITREE:GETSELECTIONID()

 getSelectionId()	--> <id>

Method UITREE:RESTOREPOSITION()

 restorePosition(<aPos>)

Method UITREE:SAVEPOSITION()

 savePosition()	--> <aPos>

Method UITREE:SETACTION()

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

Method UITREE:UITREE()

 UITree([<nTreeColumn>],<acNameColumns>)	--> UITree object

Example:

 tree := UITree(1, {"N1","N2"})
 
 node1  := tree:addNode({"Node1", "node1111"})
 node11 := tree:addNode({"Node2"})
 node2  := tree:addNode({"Leaf1"},, node1)
 

See also

UITREEITEM

Platforms

No dependies of platform.