Package org.webkitgtk
Class InputMethodContext.Builder<B extends InputMethodContext.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.webkitgtk.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theInputMethodContextobject.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) TheWebKitInputHintsof the input associated with this context.setInputHints(InputHints... inputHints) TheWebKitInputHintsof the input associated with this context.setInputPurpose(InputPurpose inputPurpose) TheWebKitInputPurposeof the input associated with this 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 theInputMethodContextobject. 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:
buildin classGObject.Builder<B extends InputMethodContext.Builder<B>>- Returns:
- a new instance of
InputMethodContextwith the properties that were set in the Builder object.
-
setInputHints
TheWebKitInputHintsof the input associated with this context.- Parameters:
inputHints- the value for theinput-hintsproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.28
-
setInputPurpose
TheWebKitInputPurposeof the input associated with this context.- Parameters:
inputPurpose- the value for theinput-purposeproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.28
-
setInputHints
TheWebKitInputHintsof the input associated with this context.- Parameters:
inputHints- the value for theinput-hintsproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.28
-
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
Builderinstance is returned, to allow method chaining - Since:
- 2.28
- See Also:
-
onDeleteSurrounding
Emitted when the input method wants to delete the context surrounding the cursor. Ifoffsetis a negative value, it means a position before the cursor.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.28
- 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
Builderinstance is returned, to allow method chaining - Since:
- 2.28
- See Also:
-
onPreeditFinished
Emitted when a preediting sequence has been completed or canceled.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.28
- See Also:
-
onPreeditStarted
Emitted when a new preediting sequence starts.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.28
- See Also:
-