Package org.gnome.gtk
Class TreeListModel.Builder<B extends TreeListModel.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gtk.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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theTreeListModelobject.setAutoexpand(boolean autoexpand) If all rows should be expanded by default.setPassthrough(boolean passthrough) Gets whether the model is in passthrough mode.Methods inherited from class org.gnome.gobject.GObject.Builder
onNotifyMethods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theTreeListModelobject. This will callGObject.withProperties(org.gnome.glib.Type, java.lang.String[], org.gnome.gobject.Value[])to create a new GObject instance, which is then cast toTreeListModel.- Overrides:
buildin classGObject.Builder<B extends TreeListModel.Builder<B>>- Returns:
- a new instance of
TreeListModelwith the properties that were set in the Builder object.
-
setAutoexpand
If all rows should be expanded by default.- Parameters:
autoexpand- the value for theautoexpandproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setPassthrough
Gets whether the model is in passthrough mode.If
false, theGListModelfunctions for this object return customTreeListRowobjects. Iftrue, the values of the child models are pass through unmodified.- Parameters:
passthrough- the value for thepassthroughproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-