Class FormSubmissionRequest

All Implemented Interfaces:
Proxy

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

Represents a form submission request.

When a form is about to be submitted in a WebKitWebView, the WebKitWebView::submit-form signal is emitted. Its request argument contains information about the text fields of the form, that are typically used to store login information, returned as lists by webkit_form_submission_request_list_text_fields(). You can submit the form with webkit_form_submission_request_submit().

  • Constructor Details

    • FormSubmissionRequest

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

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

    • getType

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

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

      protected FormSubmissionRequest 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
    • listTextFields

      public boolean listTextFields(@Nullable Out<String[]> fieldNames, @Nullable Out<String[]> fieldValues)

      Get lists of the text fields contained in the form associated to request.

      Get lists with the names and values of the text fields contained in the form associated to request. Note that names and values may be null.

      If this function returns false, then both fieldNames and fieldValues will be empty.

      Parameters:
      fieldNames - names of the text fields in the form
      fieldValues - values of the text fields in the form
      Returns:
      true if the form contains text fields, or false otherwise
      Since:
      2.20
    • submit

      public void submit()
      Continue the form submission.
    • builder

      A FormSubmissionRequest.Builder object constructs a FormSubmissionRequest with the specified properties. Use the various set...() methods to set properties, and finish construction with FormSubmissionRequest.Builder.build().
      Returns:
      the builder object