Class TreeListModel.Builder<B extends TreeListModel.Builder<B>>

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

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

      public B setAutoexpand(boolean autoexpand)
      If all rows should be expanded by default.
      Parameters:
      autoexpand - the value for the autoexpand property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setPassthrough

      public B setPassthrough(boolean passthrough)

      Gets whether the model is in passthrough mode.

      If false, the GListModel functions for this object return custom TreeListRow objects. If true, the values of the child models are pass through unmodified.

      Parameters:
      passthrough - the value for the passthrough property
      Returns:
      the Builder instance is returned, to allow method chaining