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.
Since:
2.28
  • Constructor Details

    • Builder

      protected Builder()
      Default constructor for a Builder object.
  • Method Details

    • build

      public InputMethodContext build()
      Finish building the InputMethodContext object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to InputMethodContext.
      Overrides:
      build in class GObject.Builder<B extends InputMethodContext.Builder<B>>
      Returns:
      a new instance of InputMethodContext with the properties that were set in the Builder object.
    • setInputHints

      public B setInputHints(Set<InputHints> inputHints)
      The WebKitInputHints of the input associated with this context.
      Parameters:
      inputHints - the value for the input-hints property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.28
    • setInputPurpose

      public B setInputPurpose(InputPurpose inputPurpose)
      The WebKitInputPurpose of the input associated with this context.
      Parameters:
      inputPurpose - the value for the input-purpose property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.28
    • setInputHints

      public B setInputHints(InputHints... inputHints)
      The WebKitInputHints of the input associated with this context.
      Parameters:
      inputHints - the value for the input-hints property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.28
    • onCommitted

      public B onCommitted(InputMethodContext.CommittedCallback handler)
      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
      Since:
      2.28
      See Also:
    • onDeleteSurrounding

      public B onDeleteSurrounding(InputMethodContext.DeleteSurroundingCallback handler)
      Emitted when the input method wants to delete the context surrounding the cursor. If offset 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
      Since:
      2.28
      See Also:
    • onPreeditChanged

      public B onPreeditChanged(InputMethodContext.PreeditChangedCallback handler)
      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
      Since:
      2.28
      See Also:
    • onPreeditFinished

      public B onPreeditFinished(InputMethodContext.PreeditFinishedCallback handler)
      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
      Since:
      2.28
      See Also:
    • onPreeditStarted

      public B onPreeditStarted(InputMethodContext.PreeditStartedCallback handler)
      Emitted when a new preediting sequence starts.
      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.28
      See Also: