Package org.gnome.gtksourceview
Class SearchContext.Builder<B extends SearchContext.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gtksourceview.SearchContext.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
SearchContext
public static class SearchContext.Builder<B extends SearchContext.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 theSearchContext
object.TheBuffer
associated to the search context.setHighlight
(boolean highlight) Highlight the search occurrences.setMatchStyle
(Style matchStyle) AStyle
, ornull
for theme's scheme default style.setSettings
(SearchSettings settings) TheSearchSettings
associated to the search context.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 theSearchContext
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 toSearchContext
.- Overrides:
build
in classGObject.Builder<B extends SearchContext.Builder<B>>
- Returns:
- a new instance of
SearchContext
with the properties that were set in the Builder object.
-
setBuffer
-
setHighlight
Highlight the search occurrences.- Parameters:
highlight
- the value for thehighlight
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setMatchStyle
-
setSettings
TheSearchSettings
associated to the search context.This property is construct-only since version 4.0.
- Parameters:
settings
- the value for thesettings
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-