logo

class

fwt::GridPane

sys::Obj
  fwt::Widget
    fwt::Pane
      fwt::GridPane

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.

Source

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.

Source

halignCells

Halign halignCells := Halign.left

Horizontal alignment of the individual cells. Defaults to left.

Source

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.

Source

hgap

Int hgap := 4

Horizontal gap is number of pixels between left and right edges of adjacent cells. Default is 4.

Source

numCols

Int numCols := 1

Number of columns before wrapping to a new row. Default is 1.

Source

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.

Source

prefSize

override Size prefSize(Hints hints := Hints.def)

Source

valignCells

Valign valignCells := Valign.center

Vertical alignment of the individual cells. Defaults to center.

Source

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.

Source

vgap

Int vgap := 4

Vertical gap is number of pixels between bottom and top edges of adjacent cells. Default is 4.

Source