GridPane

bajaui-GridPane

GridPane, in the bajaui palette, provides flexible layout based on a grid with a predefined number of columns. Cells are laid out left to right, flowing to the next row based on the columnCount property. Row height is determined by the max preferred height of the widgets in the row. If uniformRowHeight is true then all row heights are sized using the max row. Column width is determined by the max preferred width of the widgets in the column. If uniformColumnWidth is true then all column widths are sized using the max column. If rowLayout is set to fill then all widgets in a given row are sized to fill the row height. Otherwise the widgets use their preferred height and are aligned accordingly. If columnLayout is set to fill then all widgets in a given column are sized to fill the column width. Otherwise the widgets use their preferred width and are aligned accordingly. The columnGap field specifies how many pixels to leave between columns. The rowGap field specifies how many pixels to leave between rows. By default if the actual space of the pane is bigger than the preferred size, then the horizontalPaneAlignment and VerticalPaneAlignment fields determine where to put the extra space. Or the stretchColumn and stretchRow properties may be used to indicate that a specific column or row should be stretched to fill the additional space. Enabling the stretch feature trumps pane alignment. If the colorRows field is true then alternating rows are shaded to produced a striped effect.