
GridPane is a container which lays out its children in a grid from left to right with a new row started based on numCols
.
Slots
- expandCol
-
Int expandCol := null
If non-null, then this is a zero based column number to assign any extra width available beyond the preferred width. A negative number indexes from the last column. Default is null.
- expandRow
-
Int expandRow := null
If non-null, then this is a zero based row number to assign any extra height available beyond the preferred height. A negative number indexes from the last row. Default is null.
- halignCells
-
Halign halignCells := Halign.left
Horizontal alignment of the individual cells. Defaults to left.
- halignPane
-
Halign halignPane := Halign.left
Horizontal alignment of the entire pane - this defines where the extra horizontal space beyond the preferred width goes. This field only makes sense when expandCol is null. Defaults to left.
- hgap
-
Int hgap := 4
Horizontal gap is number of pixels between left and right edges of adjacent cells. Default is 4.
- numCols
-
Int numCols := 1
Number of columns before wrapping to a new row. Default is 1.
- onLayout
-
override Void onLayout()
Handle the layout event. The method is only called Pane containers. Custom panes must override this method to set the bounds on all their children.
- prefSize
- valignCells
-
Valign valignCells := Valign.center
Vertical alignment of the individual cells. Defaults to center.
- valignPane
-
Valign valignPane := Valign.top
Vertial alignment of the entire pane - this defines where the extra vertial space beyond the preferred height goes. This field only makes sense when expandRow is null. Defaults to top.
- vgap
-
Int vgap := 4
Vertical gap is number of pixels between bottom and top edges of adjacent cells. Default is 4.