Module is.codion.swing.common.ui
Package is.codion.swing.common.ui.layout
Interface FlexibleGridLayout.Builder
- Enclosing class:
- FlexibleGridLayout
public static interface FlexibleGridLayout.Builder
A builder for
FlexibleGridLayout
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
columns
(int columns) fixColumnWidths
(boolean fixColumnWidths) fixedColumnWidth
(int fixedColumnWidth) Also enables the fixed column widths.fixedRowHeight
(int fixedRowHeight) Also enables the fixed row heights.fixRowHeights
(boolean fixRowHeights) gap
(int gap) horizontalGap
(int horizontalGap) rows
(int rows) rowsColumns
(int rows, int columns) verticalGap
(int verticalGap)
-
Method Details
-
rows
- Parameters:
rows
- the number of rows- Returns:
- this builder instance
-
columns
- Parameters:
columns
- the number of columns- Returns:
- this builder instance
-
rowsColumns
- Parameters:
rows
- the rowscolumns
- the columns- Returns:
- this builder instance
-
gap
- Parameters:
gap
- the horizontal and vertical gap to use- Returns:
- this builder instance
-
horizontalGap
- Parameters:
horizontalGap
- the horizontal gap- Returns:
- this builder instance
-
verticalGap
- Parameters:
verticalGap
- the vertical gap- Returns:
- this builder instance
-
fixRowHeights
- Parameters:
fixRowHeights
- true if rows should have a fixed height according to the tallest component- Returns:
- this builder instance
-
fixColumnWidths
- Parameters:
fixColumnWidths
- true if columns should have a fixed width according to the widest component- Returns:
- this builder instance
-
fixedRowHeight
Also enables the fixed row heights.- Parameters:
fixedRowHeight
- the fixed row height- Returns:
- this builder instance
- See Also:
-
fixedColumnWidth
Also enables the fixed column widths.- Parameters:
fixedColumnWidth
- the fixed column width- Returns:
- this builder instance
- See Also:
-
build
FlexibleGridLayout build()- Returns:
- a new layout instance
-