BiTree2

This component is a special case of BiTreeView which has an interface which is similar to BiTree

This class extends BiTreeView and therefore all methods and fields available for BiTreeView are also available for BiTree2 .

Constructor

new BiTree2 ( oColumnNames )

Parameters

NameTypeOptionalDefaultDescripton
oColumnNamesString[]Optional string array telling what to show on the tree headers.

Properties

NameTypegetsetDescripton
columnCountNumbercheckedcheckedThe number of columns in the tree
columnNamesString[]checkedcheckedThe text to show on the headers of the tree
columnOrdersNumber[]checkedcheckedThe order of the columns. This an array containing the indexes of the columns.
columnWidthsString[]checkedcheckedThe widths of the columns of the tree
rowsBiTree2Row[]checkedThe rows in the tree
showGridLinesBooleancheckedcheckedWhether to show grid lines between the cells in the tree
showHeadersBooleancheckedcheckedWhether to show the headers for the tree
showRowHeadersBooleancheckedcheckedWhether to show the row headers for the tree

Methods

NameDescription
addRowAdds a row to the tree
removeAllThis removes all the rows
removeRowRemoves a row item from the tree

Events

None.

Static Methods

None.

Static Fields

None.

Remarks

None.

Method Details

addRow

Adds a row to the tree

Syntax

object.addRow ( oChild,oBefore )

Parameters

NameTypeOptionalDefaultDescripton
oChildBiTree2RowThe row to add to the tree
oBeforeBiTree2RowOptional argument telling what row to insert before

Return Type

void

removeAll

This removes all the rows

Syntax

object.removeAll ( )

Parameters

No arguments.

Return Type

void

removeRow

Removes a row item from the tree

Syntax

object.removeRow ( oChild )

Parameters

NameTypeOptionalDefaultDescripton
oChildBiTree2RowThe row to remove

Return Type

BiTree2Row