Class TreeSelection.Builder<B extends TreeSelection.Builder<B>>

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

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

      public B setMode(SelectionMode mode)
      Selection mode. See gtk_tree_selection_set_mode() for more information on this property.
      Parameters:
      mode - the value for the mode property
      Returns:
      the Builder instance is returned, to allow method chaining
    • onChanged

      public B onChanged(TreeSelection.ChangedCallback handler)
      Emitted whenever the selection has (possibly) changed. Please note that this signal is mostly a hint. It may only be emitted once when a range of rows are selected, and it may occasionally be emitted when nothing has happened.
      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      See Also: