Methods
-
adopt(newChild)
-
Add the node given in parameter to the children list of the callee, and returns the key under which the children is registered. This method should never receive a proxy
Parameters:
Name Type Description newChild
olympe.df.tree.AbstractTreeNode Returns:
- Type
- string
-
disown(child)
-
Remove a previously added child.
Parameters:
Name Type Description child
olympe.df.tree.AbstractTreeNode -
getChildren()
-
Return a list of all children.
Returns:
-
getCurrentVisibleItems()
-
Returns the number of elements currently visible (not dataflow - snapshot value).
Returns:
- Type
- number
-
getUserData()
-
Permits to retrieve the object contained within the node
Returns:
- Type
- olympe.df.Proxy.<T> | T
-
getVisibleItems()
-
Returns the number of tree elements that are visible. The returned value is a dataflow of number whose value will track the evolution of the tree (addition or deletion of children, or expansion or collapse thereof).
Returns:
-
isExpanded()
-
Returns:
- Type
- olympe.df.POBoolean
-
setExpanded(boolean_)
-
Parameters:
Name Type Description boolean_
boolean | olympe.df.OBoolean | olympe.df.POBoolean -
setUserData(userData)
-
Assign an object to the current node.
Parameters:
Name Type Description userData
T | olympe.df.Proxy.<T> -
toggleExpanded()
-
Simply toggles the state of expansion of current node