Class NoSelection.Builder<B extends NoSelection.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
NoSelection<T extends GObject>

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

      public B setModel(ListModel model)
      The model being managed.
      Parameters:
      model - the value for the model property
      Returns:
      the Builder instance is returned, to allow method chaining