Class ColorChooserWidget.Builder<B extends ColorChooserWidget.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
Accessible.Builder<B>, ColorChooser.Builder<B>, BuilderInterface
Enclosing class:
ColorChooserWidget

public static class ColorChooserWidget.Builder<B extends ColorChooserWidget.Builder<B>> extends Widget.Builder<B> implements Accessible.Builder<B>, ColorChooser.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 ColorChooserWidget build()
      Finish building the ColorChooserWidget object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to ColorChooserWidget.
      Overrides:
      build in class Widget.Builder<B extends ColorChooserWidget.Builder<B>>
      Returns:
      a new instance of ColorChooserWidget with the properties that were set in the Builder object.
    • setShowEditor

      public B setShowEditor(boolean showEditor)

      true when the color chooser is showing the single-color editor.

      It can be set to switch the color chooser into single-color editing mode.

      Parameters:
      showEditor - the value for the show-editor property
      Returns:
      the Builder instance is returned, to allow method chaining