Class LayoutChild.Builder<B extends LayoutChild.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Direct Known Subclasses:
ConstraintLayoutChild.Builder, FixedLayoutChild.Builder, GridLayoutChild.Builder, OverlayLayoutChild.Builder
Enclosing class:
LayoutChild

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

      public B setChildWidget(Widget childWidget)
      The widget that is associated to the GtkLayoutChild instance.
      Parameters:
      childWidget - the value for the child-widget property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setLayoutManager

      public B setLayoutManager(LayoutManager layoutManager)
      The layout manager that created the GtkLayoutChild instance.
      Parameters:
      layoutManager - the value for the layout-manager property
      Returns:
      the Builder instance is returned, to allow method chaining