Class TreeModelFilter.Builder<B extends TreeModelFilter.Builder<B>>

java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gtk.TreeModelFilter.Builder<B>
Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
TreeModelFilter

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

      public B setChildModel(TreeModel childModel)
      The child model of the tree model filter.
      Parameters:
      childModel - the value for the child-model property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setVirtualRoot

      public B setVirtualRoot(TreePath virtualRoot)
      The virtual root of the tree model filter.
      Parameters:
      virtualRoot - the value for the virtual-root property
      Returns:
      the Builder instance is returned, to allow method chaining