Class TreeListRow.Builder<B extends TreeListRow.Builder<B>>

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

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

      public B setExpanded(boolean expanded)
      If this row is currently expanded.
      Parameters:
      expanded - the value for the expanded property
      Returns:
      the Builder instance is returned, to allow method chaining