BiTreeNode2
This class is used to build up the tree for the tree model to use with the BiTreeView and BiTreeDataModel
This class extends BiObject and therefore all methods and fields available for BiObject are also available for BiTreeNode2 .
Constructor
new BiTreeNode2 ( oData )
Parameters
| Name | Type | Optional | Default | Descripton |
oData | Object | The data to associate with the node |
Properties
| Name | Type | get | set | Descripton |
children | | ![]() | The child nodes of the tree node | |
data | Object[] | ![]() | ![]() | The data that is associated to the node |
hasChildren | Boolean | ![]() | Whether the tree node has any children | |
parent | | ![]() | The parent tree node |
Methods
| Name | Description |
add | Adds a child node to the current node |
remove | Removes a child node from the current node |
Events
None.
Static Methods
None.
Static Fields
None.
Remarks
None.
Method Details
add
Adds a child node to the current node
Syntax
object.add ( oChild,oBefore ) Parameters
| Name | Type | Optional | Default | Descripton |
oChild | | The node to add | ||
oBefore | | Optional argument that gives the child that the new child should be added before |
Return Type
void
remove
Removes a child node from the current node
Syntax
object.remove ( oChild ) Parameters
| Name | Type | Optional | Default | Descripton |
oChild | | The node to remove |
