Package org.gnome.gtk
Class StringFilter.Builder<B extends StringFilter.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gtk.Filter.Builder<B>
org.gnome.gtk.StringFilter.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
StringFilter
public static class StringFilter.Builder<B extends StringFilter.Builder<B>>
extends Filter.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theStringFilter
object.setExpression
(Expression expression) The expression to evaluate on item to get a string to compare with.setIgnoreCase
(boolean ignoreCase) If matching is case sensitive.setMatchMode
(StringFilterMatchMode matchMode) If exact matches are necessary or if substrings are allowed.The search term.Methods inherited from class org.gnome.gtk.Filter.Builder
onChanged
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 theStringFilter
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 toStringFilter
.- Overrides:
build
in classFilter.Builder<B extends StringFilter.Builder<B>>
- Returns:
- a new instance of
StringFilter
with the properties that were set in the Builder object.
-
setExpression
The expression to evaluate on item to get a string to compare with.- Parameters:
expression
- the value for theexpression
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setIgnoreCase
If matching is case sensitive.- Parameters:
ignoreCase
- the value for theignore-case
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setMatchMode
If exact matches are necessary or if substrings are allowed.- Parameters:
matchMode
- the value for thematch-mode
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setSearch
-