BiGridDataModel

This data model takes an array of arrays containing the text for a grid. This data model is to be used with BiTreeView

This class extends BiTreeViewDataModel and therefore all methods and fields available for BiTreeViewDataModel are also available for BiGridDataModel .

Constructor

new BiGridDataModel ( oData )

Parameters

NameTypeOptionalDefaultDescripton
oDataObject[][]Optional matrix to use as the data

Properties

None.

Methods

NameDescription
getDataAtThis returns the data at row y
insertRowAtinserts a new object into the tree rows
removeRowAtremoves the row at the given row index
setDataAtSets the data at row y

Events

None.

Static Methods

None.

Static Fields

None.

Remarks

None.

Method Details

getDataAt

This returns the data at row y

Syntax

object.getDataAt ( y )

Parameters

NameTypeOptionalDefaultDescripton
yNumberThe index of the row

Return Type

Object[]

insertRowAt

inserts a new object into the tree rows

Syntax

object.insertRowAt ( obj,y )

Parameters

NameTypeOptionalDefaultDescripton
objObjectthe object describing the data
yNumberthe index of the row where to insert

Return Type

void

removeRowAt

removes the row at the given row index

Syntax

object.removeRowAt ( y )

Parameters

NameTypeOptionalDefaultDescripton
yNumberthe index of the row to remove

Return Type

void

setDataAt

Sets the data at row y

Syntax

object.setDataAt ( y,oData )

Parameters

NameTypeOptionalDefaultDescripton
yNumberThe index of the row
oDataObject[]The new data

Return Type

Object[]