Class SizeGroup.Builder<B extends SizeGroup.Builder<B>>

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

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

      public B setMode(SizeGroupMode mode)
      The direction in which the size group affects requested sizes.
      Parameters:
      mode - the value for the mode property
      Returns:
      the Builder instance is returned, to allow method chaining