Class Layout.Builder<B extends Layout.Builder<B>>

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

public static class Layout.Builder<B extends Layout.Builder<B>> extends GObject.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
Since:
1.6
  • Constructor Details

    • Builder

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

    • build

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

      public B setContent(Widget content)
      The content widget.
      Parameters:
      content - the value for the content property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      1.6
    • setName

      public B setName(String name)
      The name of the layout.
      Parameters:
      name - the value for the name property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      1.6