Class MultiSelection.Builder<B extends MultiSelection.Builder<B>>

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

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

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