Class GridLayoutChild.Builder<B extends GridLayoutChild.Builder<B>>

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

public static class GridLayoutChild.Builder<B extends GridLayoutChild.Builder<B>> extends LayoutChild.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 GridLayoutChild build()
      Finish building the GridLayoutChild object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to GridLayoutChild.
      Overrides:
      build in class LayoutChild.Builder<B extends GridLayoutChild.Builder<B>>
      Returns:
      a new instance of GridLayoutChild with the properties that were set in the Builder object.
    • setColumn

      public B setColumn(int column)
      The column to place the child in.
      Parameters:
      column - the value for the column property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setColumnSpan

      public B setColumnSpan(int columnSpan)
      The number of columns the child spans to.
      Parameters:
      columnSpan - the value for the column-span property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setRow

      public B setRow(int row)
      The row to place the child in.
      Parameters:
      row - the value for the row property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setRowSpan

      public B setRowSpan(int rowSpan)
      The number of rows the child spans to.
      Parameters:
      rowSpan - the value for the row-span property
      Returns:
      the Builder instance is returned, to allow method chaining