BiGridPanel2

BiGridPanel2 is a layout component based on BiGridPanel. It works similair to a html table. A layout is created by adding rows and cells to the Panel. Cells and rows can have padding, colspan, rowspan, alignment etc. Defaults can also be set on the grid panel itself.

This class extends BiGridPanel and therefore all methods and fields available for BiGridPanel are also available for BiGridPanel2 .

Constructor

new BiGridPanel2 ( )

Parameters

No parameters.

Properties

NameTypegetsetDescripton
alignStringcheckedcheckedHorizontal alignment for cells in the grid. Individual rows and cells can override this.
cellMatrixArraycheckedReturns a matrix (array of arrays) filled with the BiGridPanel2Cell cells that have been added to the grid panel. This is an example of how the matrix might look: [ [c1,c1,c2], [c1,c1,c2], [c3,c4,null] ] Here c1 has colSpan=rowSpan=2, c2 has rowSpan=2. In the null position no cell has been added. The matrix returned is temporary, changing it may yield strange sideeffects.
cellPaddingNumbercheckedcheckedPadding for cells in the grid. Individual rows and cells can override this.
colSizesArraycheckedThe calculated colSizes in the grid. Calculated when the children are laid out.
defaultColWidthStringcheckedcheckedDefault column width to use for columns with no width given by the cols property. (defaults to "*")
defaultRowHeightStringcheckedcheckedDefault row height to use for rows with no height given by the rows property. (defaults to "*")
gridRowsBiGridPanel2Row[]checkedThe rows in the grid panel.
rowSizesArraycheckedThe calculated rowSizes in the grid. Calculated when the children are laid out.
valignStringcheckedcheckedVertical alignment for cells in the grid. Individual rows and cells can override this.

Methods

NameDescription
addAdds a row to the grid panel
removeRemoves a row from the grid panel
removeAllRemoves all rows from the grid panel

Events

None.

Static Methods

None.

Static Fields

None.

Remarks

See BiGridPanel for syntax of rows and cols.

Method Details

add

Adds a row to the grid panel

Syntax

object.add ( oRow )

Parameters

NameTypeOptionalDefaultDescripton
oRowBiGridPanel2RowRow to add

Return Type

void

remove

Removes a row from the grid panel

Syntax

object.remove ( oRow )

Parameters

NameTypeOptionalDefaultDescripton
oRowBiGridPanel2RowRow to remove

Return Type

void

removeAll

Removes all rows from the grid panel

Syntax

object.removeAll ( )

Parameters

No arguments.

Return Type

void