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

NameTypeOptionalDefaultDescripton
oDataObjectThe data to associate with the node

Properties

NameTypegetsetDescripton
childrenBiTreeNode2[]checkedThe child nodes of the tree node
dataObject[]checkedcheckedThe data that is associated to the node
hasChildrenBooleancheckedWhether the tree node has any children
parentBiTreeNode2checkedThe parent tree node

Methods

NameDescription
addAdds a child node to the current node
removeRemoves 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

NameTypeOptionalDefaultDescripton
oChildBiTreeNode2The node to add
oBeforeBiTreeNode2Optional 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

NameTypeOptionalDefaultDescripton
oChildBiTreeNode2The node to remove

Return Type

BiTreeNode2