BiTree2Row

This class is used as the data for rows in the BiTree2 component

This class extends BiObject and therefore all methods and fields available for BiObject are also available for BiTree2Row .

Constructor

new BiTree2Row ( oData )

Parameters

NameTypeOptionalDefaultDescripton
oDataObject[]Optional array of objects describing the data for the cells

Properties

NameTypegetsetDescripton
cellsBiGrid2Cell[]checkedThe cells in the row
expandedBooleancheckedcheckedWhether the row is expanded
parentBiTree2RowcheckedThe parent tree row
rowsBiTree2Row[]checkedThe rows that are children to the current row
treeBiTree2checkedThe BiTree2 the row is part of

Methods

NameDescription
addCellAdds a cell to the row
addRowAdds a row to the tree
getCellReturns the cell for the given column
getDataReturns the data at the given column
removeAllThis removes and disposes all the rows
removeCellRemoves a cell from the row
removeRowRemoves a row item from the tree
setDataSets the data for the cell at the given column

Events

None.

Static Methods

None.

Static Fields

None.

Remarks

None.

Method Details

addCell

Adds a cell to the row

Syntax

object.addCell ( oChild,oBefore )

Parameters

NameTypeOptionalDefaultDescripton
oChildBiTree2CellThe cell to add
oBeforeBiTree2CellOptional cell to insert the new cell before

Return Type

void

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

getCell

Returns the cell for the given column

Syntax

object.getCell ( nCol )

Parameters

NameTypeOptionalDefaultDescripton
nColNumberThe column index for the cell to get

Return Type

BiTree2Cell

getData

Returns the data at the given column

Syntax

object.getData ( nCol )

Parameters

NameTypeOptionalDefaultDescripton
nColNumberThe column index for the data

Return Type

Object

removeAll

This removes and disposes all the rows

Syntax

object.removeAll ( )

Parameters

No arguments.

Return Type

void

removeCell

Removes a cell from the row

Syntax

object.removeCell ( oChild )

Parameters

NameTypeOptionalDefaultDescripton
oChildBiTree2CellThe cell to remove

Return Type

BiTree2Cell

removeRow

Removes a row item from the tree

Syntax

object.removeRow ( oChild )

Parameters

NameTypeOptionalDefaultDescripton
oChildBiTree2RowThe row to remove

Return Type

void

setData

Sets the data for the cell at the given column

Syntax

object.setData ( nCol,oData )

Parameters

NameTypeOptionalDefaultDescripton
nColNumberThe column index for the data
oDataObjectThe data associated with the cell at the given column

Return Type

Object