Package org.gnome.webkit
Class InputMethodContext.Builder<B extends InputMethodContext.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.webkit.InputMethodContext.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
InputMethodContext
public static class InputMethodContext.Builder<B extends InputMethodContext.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 theInputMethodContext
object.Emitted when a complete input sequence has been entered by the user.Emitted when the input method wants to delete the context surrounding the cursor.Emitted whenever the preedit sequence currently being entered has changed.Emitted when a preediting sequence has been completed or canceled.Emitted when a new preediting sequence starts.setInputHints
(Set<InputHints> inputHints) TheWebKitInputHints
of the input associated with this context.setInputHints
(InputHints... inputHints) TheWebKitInputHints
of the input associated with this context.setInputPurpose
(InputPurpose inputPurpose) TheWebKitInputPurpose
of the input associated with this 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 theInputMethodContext
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 toInputMethodContext
.- Overrides:
build
in classGObject.Builder<B extends InputMethodContext.Builder<B>>
- Returns:
- a new instance of
InputMethodContext
with the properties that were set in the Builder object. - Throws:
UnsupportedPlatformException
- when run on an unsupported platform
-
setInputHints
TheWebKitInputHints
of the input associated with this context.- Parameters:
inputHints
- the value for theinput-hints
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setInputPurpose
TheWebKitInputPurpose
of the input associated with this context.- Parameters:
inputPurpose
- the value for theinput-purpose
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setInputHints
TheWebKitInputHints
of the input associated with this context.- Parameters:
inputHints
- the value for theinput-hints
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
onCommitted
Emitted when a complete input sequence has been entered by the user. This can be a single character immediately after a key press or the final result of preediting.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onDeleteSurrounding
Emitted when the input method wants to delete the context surrounding the cursor. Ifoffset
is a negative value, it means a position before the cursor.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onPreeditChanged
Emitted whenever the preedit sequence currently being entered has changed. It is also emitted at the end of a preedit sequence, in which case webkit_input_method_context_get_preedit() returns the empty string.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onPreeditFinished
Emitted when a preediting sequence has been completed or canceled.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onPreeditStarted
Emitted when a new preediting sequence starts.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-