Package org.gnome.gtk
Class BoolFilter.Builder<B extends BoolFilter.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gtk.Filter.Builder<B>
org.gnome.gtk.BoolFilter.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
BoolFilter
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theBoolFilterobject.setExpression(Expression expression) The boolean expression to evaluate on each item.setInvert(boolean invert) If the expression result should be inverted.Methods inherited from class org.gnome.gtk.Filter.Builder
onChangedMethods 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 theBoolFilterobject. 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 toBoolFilter.- Overrides:
buildin classFilter.Builder<B extends BoolFilter.Builder<B>>- Returns:
- a new instance of
BoolFilterwith the properties that were set in the Builder object.
-
setExpression
The boolean expression to evaluate on each item.- Parameters:
expression- the value for theexpressionproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setInvert
If the expression result should be inverted.- Parameters:
invert- the value for theinvertproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-