Class EnumListModel.Builder<B extends EnumListModel.Builder<B>>

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

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

      public B setEnumType(Type enumType)
      The type of the enum represented by the model.
      Parameters:
      enumType - the value for the enum-type property
      Returns:
      the Builder instance is returned, to allow method chaining