Tree node context. General interface that can be used to access current tree
node configuration.
author: Alar Kvell (alar@araneaframework.org) since: 1.0.7
Method Summary
void
addAllNodes(List nodes) Appends all given nodes to this tree node.
int
addNode(TreeNodeWidget node) Adds the given node as the last child node of this tree node.
Parameters: node - child node to be added.
void
addNode(int index, TreeNodeWidget node) Adds the given node to the specified position.
Adds the given node to the specified position. Moves all subsequent nodes
one position further.
Parameters: index - Position of the added node Parameters: node - Node to add
Returns how many parent nodes this TreeNodeWidget has. TreeWidget (root
node) has zero parents, it's immediate children have one parent, etc.
number of parents in hierarchy.
Sets collapsed state of tree node. If true, child nodes are
hidden, otherwise child nodes are shown. This may trigger removal or
retrieval of child nodes using
TreeDataProvider if
TreeContext.isRemoveChildrenOnCollapse is true.