Class GridLayout.Builder<B extends GridLayout.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
GridLayout

public static class GridLayout.Builder<B extends GridLayout.Builder<B>> extends LayoutManager.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
  • Constructor Details

    • Builder

      protected Builder()
      Default constructor for a Builder object.
  • Method Details

    • build

      public GridLayout build()
      Finish building the GridLayout object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to GridLayout.
      Overrides:
      build in class LayoutManager.Builder<B extends GridLayout.Builder<B>>
      Returns:
      a new instance of GridLayout with the properties that were set in the Builder object.
    • setBaselineRow

      public B setBaselineRow(int baselineRow)
      The row to align to the baseline, when GtkWidget:valign is set to Align.BASELINE.
      Parameters:
      baselineRow - the value for the baseline-row property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setColumnHomogeneous

      public B setColumnHomogeneous(boolean columnHomogeneous)
      Whether all the columns in the grid have the same width.
      Parameters:
      columnHomogeneous - the value for the column-homogeneous property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setColumnSpacing

      public B setColumnSpacing(int columnSpacing)
      The amount of space between to consecutive columns.
      Parameters:
      columnSpacing - the value for the column-spacing property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setRowHomogeneous

      public B setRowHomogeneous(boolean rowHomogeneous)
      Whether all the rows in the grid have the same height.
      Parameters:
      rowHomogeneous - the value for the row-homogeneous property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setRowSpacing

      public B setRowSpacing(int rowSpacing)
      The amount of space between to consecutive rows.
      Parameters:
      rowSpacing - the value for the row-spacing property
      Returns:
      the Builder instance is returned, to allow method chaining