DynamicGridLayout

Methods
9
Fields
None

Getting one

DynamicGridLayout.new()

Methods

MethodReturnsDescription
getRows()numberThe rows (0: as many as needed).
setRows(number)()Sets the rows; rows and columns both 0 raises IllegalArgumentException.
getColumns()numberThe columns (0: as many as needed).
setColumns(number)()Sets the columns; rows and columns both 0 raises IllegalArgumentException.
getHgap()numberThe gap between columns.
setHgap(number)()Sets the gap between columns.
getVgap()numberThe gap between rows.
setVgap(number)()Sets the gap between rows.
new()DynamicGridLayout() -> DynamicGridLayout: One row, a column a component.
new(number, number)DynamicGridLayout
new(number, number, number, number)DynamicGridLayout

Returned by

MethodReturnsDescription
DynamicGridLayoutClass.newDynamicGridLayout() -> DynamicGridLayout: One row, a column a component.

Method details

setRows

setRows: (DynamicGridLayout, number) -> ()

Sets the rows; rows and columns both 0 raises IllegalArgumentException.

new

new: (() -> DynamicGridLayout) & ((number, number) -> DynamicGridLayout) & ((number, number, number, number) -> DynamicGridLayout)

() -> DynamicGridLayout: One row, a column a component.

(number, number) -> DynamicGridLayout: rows by cols cells, each row and column as big as its biggest component (one of them 0: as many as needed).

(number, number, number, number) -> DynamicGridLayout: As new(rows, cols), with these gaps.