Package org.gnome.gtk
Class FilterListModel.Builder<B extends FilterListModel.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gtk.FilterListModel.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
FilterListModel<T extends GObject>
public static class FilterListModel.Builder<B extends FilterListModel.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 theFilterListModelobject.The filter for this model.setIncremental(boolean incremental) If the model should filter items incrementally.The model being filtered.setWatchItems(boolean watchItems) Monitor the list items for changes.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 theFilterListModelobject. 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 toFilterListModel.- Overrides:
buildin classGObject.Builder<B extends FilterListModel.Builder<B>>- Returns:
- a new instance of
FilterListModelwith the properties that were set in the Builder object.
-
setFilter
-
setIncremental
If the model should filter items incrementally.- Parameters:
incremental- the value for theincrementalproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setModel
-
setWatchItems
Monitor the list items for changes. It may impact performance.- Parameters:
watchItems- the value for thewatch-itemsproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.20
-