Package org.gnome.gtksourceview
Class Completion.Builder<B extends Completion.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gtksourceview.Completion.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
Completion
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theCompletion
object.onHide
(Completion.HideCallback handler) The "hide" signal is emitted when the completion window should be hidden.The "provided-added" signal is emitted when a new provider is added to the completion.The "provided-removed" signal is emitted when a provider has been removed from the completion.onShow
(Completion.ShowCallback handler) The "show" signal is emitted when the completion window should be shown.setPageSize
(int pageSize) The number of rows to display to the user before scrolling.setRememberInfoVisibility
(boolean rememberInfoVisibility) Determines whether the visibility of the info window should be saved when the completion is hidden, and restored when the completion is shown again.setSelectOnShow
(boolean selectOnShow) Determines whether the first proposal should be selected when the completion is first shown.setShowIcons
(boolean showIcons) The "show-icons" property denotes if icons should be displayed within the list of completions presented to the user.The "view" property is theGtkTextView
for which thisGtkSourceCompletion
is providing completion features.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 theCompletion
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 toCompletion
.- Overrides:
build
in classGObject.Builder<B extends Completion.Builder<B>>
- Returns:
- a new instance of
Completion
with the properties that were set in the Builder object.
-
setPageSize
The number of rows to display to the user before scrolling.- Parameters:
pageSize
- the value for thepage-size
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setRememberInfoVisibility
Determines whether the visibility of the info window should be saved when the completion is hidden, and restored when the completion is shown again.- Parameters:
rememberInfoVisibility
- the value for theremember-info-visibility
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setSelectOnShow
Determines whether the first proposal should be selected when the completion is first shown.- Parameters:
selectOnShow
- the value for theselect-on-show
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setShowIcons
The "show-icons" property denotes if icons should be displayed within the list of completions presented to the user.- Parameters:
showIcons
- the value for theshow-icons
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setView
-
onHide
The "hide" signal is emitted when the completion window should be hidden.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onProviderAdded
The "provided-added" signal is emitted when a new provider is added to the completion.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onProviderRemoved
The "provided-removed" signal is emitted when a provider has been removed from the completion.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onShow
The "show" signal is emitted when the completion window should be shown.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-