GridLayout

Methods
9
Fields
None

Getting one

GridLayout.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()GridLayout() -> GridLayout: One row, a column a component.
new(number, number)GridLayout
new(number, number, number, number)GridLayout

Returned by

MethodReturnsDescription
GridLayoutClass.newGridLayout() -> GridLayout: One row, a column a component.

Method details

setRows

setRows: (GridLayout, number) -> ()

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

setColumns

setColumns: (GridLayout, number) -> ()

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

new

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

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

(number, number) -> GridLayout: rows by cols equal cells (one of them 0: as many as needed; both 0 raises IllegalArgumentException).

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