Interface FlexibleGridLayout.Builder

Enclosing class:
FlexibleGridLayout

public static interface FlexibleGridLayout.Builder
A builder for FlexibleGridLayout.
  • Method Details

    • rows

      Parameters:
      rows - the number of rows
      Returns:
      this builder instance
    • columns

      FlexibleGridLayout.Builder columns(int columns)
      Parameters:
      columns - the number of columns
      Returns:
      this builder instance
    • rowsColumns

      FlexibleGridLayout.Builder rowsColumns(int rows, int columns)
      Parameters:
      rows - the rows
      columns - the columns
      Returns:
      this builder instance
    • gap

      Parameters:
      gap - the horizontal and vertical gap to use
      Returns:
      this builder instance
    • horizontalGap

      FlexibleGridLayout.Builder horizontalGap(int horizontalGap)
      Parameters:
      horizontalGap - the horizontal gap
      Returns:
      this builder instance
    • verticalGap

      FlexibleGridLayout.Builder verticalGap(int verticalGap)
      Parameters:
      verticalGap - the vertical gap
      Returns:
      this builder instance
    • fixRowHeights

      FlexibleGridLayout.Builder fixRowHeights(boolean fixRowHeights)
      Parameters:
      fixRowHeights - true if rows should have a fixed height according to the tallest component
      Returns:
      this builder instance
    • fixColumnWidths

      FlexibleGridLayout.Builder fixColumnWidths(boolean fixColumnWidths)
      Parameters:
      fixColumnWidths - true if columns should have a fixed width according to the widest component
      Returns:
      this builder instance
    • fixedRowHeight

      FlexibleGridLayout.Builder fixedRowHeight(int fixedRowHeight)
      Also enables the fixed row heights.
      Parameters:
      fixedRowHeight - the fixed row height
      Returns:
      this builder instance
      See Also:
    • fixedColumnWidth

      FlexibleGridLayout.Builder fixedColumnWidth(int fixedColumnWidth)
      Also enables the fixed column widths.
      Parameters:
      fixedColumnWidth - the fixed column width
      Returns:
      this builder instance
      See Also:
    • build

      Returns:
      a new layout instance