Class SqueezerPage.Builder<B extends SqueezerPage.Builder<B>>

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

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

      @Deprecated public B setChild(Widget child)
      Deprecated.
      The the squeezer child to which the page belongs.
      Parameters:
      child - the value for the child property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setEnabled

      @Deprecated public B setEnabled(boolean enabled)
      Deprecated.

      Whether the child is enabled.

      If a child is disabled, it will be ignored when looking for the child fitting the available size best.

      This allows to programmatically and prematurely hide a child even if it fits in the available space.

      This can be used e.g. to ensure a certain child is hidden below a certain window width, or any other constraint you find suitable.

      Parameters:
      enabled - the value for the enabled property
      Returns:
      the Builder instance is returned, to allow method chaining