Class TreeModelSort.Builder<B extends TreeModelSort.Builder<B>>

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

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

      public B setModel(TreeModel model)
      The model of the tree model sort.
      Parameters:
      model - the value for the model property
      Returns:
      the Builder instance is returned, to allow method chaining