Class ColorChooserRequest.Builder<B extends ColorChooserRequest.Builder<B>>

java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.webkitgtk.ColorChooserRequest.Builder<B>
Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
ColorChooserRequest

public static class ColorChooserRequest.Builder<B extends ColorChooserRequest.Builder<B>> extends GObject.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
  • Constructor Details

    • Builder

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

    • build

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

      public B setRgba(RGBA rgba)
      The GdkRGBA color of the request
      Parameters:
      rgba - the value for the rgba property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.8
    • onFinished

      public B onFinished(ColorChooserRequest.FinishedCallback handler)
      Emitted when the request finishes. This signal can be emitted because the user completed the request calling webkit_color_chooser_request_finish(), or cancelled it with webkit_color_chooser_request_cancel() or because the color input element is removed from the DOM.
      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.8
      See Also: