Class WebEditor

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public final class WebEditor extends GObject

Access to editing capabilities of a WebKitWebPage.

The WebKitWebEditor provides access to various editing capabilities of a WebKitWebPage such as a possibility to react to the current selection in WebKitWebPage.

Since:
2.10
  • Constructor Details

    • WebEditor

      public WebEditor(MemorySegment address)
      Create a WebEditor instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • WebEditor

      public WebEditor()
      Create a new WebEditor.
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the WebEditor class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected WebEditor asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class GObject
      Returns:
      the instance as if it were its parent type
    • getPage

      public WebPage getPage()
      Gets the WebKitWebPage that is associated with the WebKitWebEditor.
      Returns:
      the associated WebKitWebPage
      Since:
      2.10
    • onSelectionChanged

      This signal is emitted for every selection change inside a WebKitWebPage as well as for every caret position change as the caret is a collapsed selection.
      Parameters:
      handler - the signal handler
      Returns:
      a signal handler ID to keep track of the signal connection
      Since:
      2.10
      See Also:
    • emitSelectionChanged

      public void emitSelectionChanged()
      Emits the "selection-changed" signal. See onSelectionChanged(WebEditor.SelectionChangedCallback).
    • builder

      public static WebEditor.Builder<? extends WebEditor.Builder> builder()
      A WebEditor.Builder object constructs a WebEditor with the specified properties. Use the various set...() methods to set properties, and finish construction with WebEditor.Builder.build().
      Returns:
      the builder object