BiGridPanel

This layout component positions and sizes its children in a simple grid where the columns and rows are decided using string patterns much like the way the rows and cols attribute for HTML framesets decides the size and position of the frames.

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

Constructor

new BiGridPanel ( [ sRows [ ,sCols [ ,nHGap [ ,nVGap ] ] ] ] )

Parameters

NameTypeOptionalDefaultDescripton
sRowsStringcheckedRow heights pattern
sColsStringcheckedColumn widths pattern
nHGapNumbercheckedThe horizontal gap between columns
nVGapNumbercheckedThe vertical gap between rows

Properties

NameTypegetsetDescripton
colsStringcheckedcheckedThis is a string representing the column widths. It is a comma seperated string of column sizes. See the remarks for more info.
hGapNumbercheckedcheckedThe horizontal gap between the columns
rowsStringcheckedcheckedThis is a string representing the row heights. It is a comma seperated string of row sizes. See the remarks for more info.
vGapNumbercheckedcheckedThe vertical gap between the rows

Methods

None.

Events

None.

Static Methods

None.

Static Fields

None.

Remarks

The syntax for the rows and cols is similar to how HTML framesets size their frames. These properties take a comma separated string of sizes. Sizes can be of the following formats: 75 : 75 px 25% : 25% of the client size of the BiGridPanel component * : Remaining space 1.5* : Weighted remaining space. This is used when more than one of the sizes contains a '*' to decide how to distribute the size. - : Maximum preferred size of the components Below is the syntax for the cols and rows properties: ROWS = SIZE ( ',' SIZE ) * COLS = SIZE ( ',' SIZE ) * SIZE = NUMBER | NUMBER '%' | '*' | NUMBER '*' | '-'