Package org.gnome.gtksourceview
Class SearchContext.Builder<B extends SearchContext.Builder<B>>
java.lang.Object
org.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theSearchContextobject.TheBufferassociated to the search context.setHighlight(boolean highlight) Highlight the search occurrences.setMatchStyle(Style matchStyle) AStyle, ornullfor theme's scheme default style.setSettings(SearchSettings settings) TheSearchSettingsassociated to the search context.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 theSearchContextobject. 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:
buildin classGObject.Builder<B extends SearchContext.Builder<B>>- Returns:
- a new instance of
SearchContextwith the properties that were set in the Builder object.
-
setBuffer
-
setHighlight
Highlight the search occurrences.- Parameters:
highlight- the value for thehighlightproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setMatchStyle
-
setSettings
TheSearchSettingsassociated to the search context.This property is construct-only since version 4.0.
- Parameters:
settings- the value for thesettingsproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-