Package org.gnome.gtk
Class TreeListModel.Builder<B extends TreeListModel.Builder<B>>
java.lang.Object
io.github.jwharm.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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theTreeListModel
object.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
onNotify
Methods inherited from class io.github.jwharm.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building theTreeListModel
object. 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:
build
in classGObject.Builder<B extends TreeListModel.Builder<B>>
- Returns:
- a new instance of
TreeListModel
with the properties that were set in the Builder object.
-
setAutoexpand
If all rows should be expanded by default.- Parameters:
autoexpand
- the value for theautoexpand
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setPassthrough
Gets whether the model is in passthrough mode.If
false
, theGListModel
functions for this object return customTreeListRow
objects. Iftrue
, the values of the child models are pass through unmodified.- Parameters:
passthrough
- the value for thepassthrough
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-