Class ColorChooserDialog.Builder<B extends ColorChooserDialog.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:
ColorChooserDialog

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

      public B setShowEditor(boolean showEditor)

      Whether the color chooser dialog 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