Package org.gnome.gtk
Class ColorDialog.Builder<B extends ColorDialog.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gtk.ColorDialog.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
ColorDialog
public static class ColorDialog.Builder<B extends ColorDialog.Builder<B>>
extends GObject.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theColorDialogobject.setModal(boolean modal) Whether the color chooser dialog is modal.A title that may be shown on the color chooser dialog.setWithAlpha(boolean withAlpha) Whether colors may have alpha (translucency).Methods inherited from class org.gnome.gobject.GObject.Builder
onNotifyMethods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theColorDialogobject. This will callGObject.withProperties(org.gnome.glib.Type, java.lang.String[], org.gnome.gobject.Value[])to create a new GObject instance, which is then cast toColorDialog.- Overrides:
buildin classGObject.Builder<B extends ColorDialog.Builder<B>>- Returns:
- a new instance of
ColorDialogwith the properties that were set in the Builder object.
-
setModal
Whether the color chooser dialog is modal.- Parameters:
modal- the value for themodalproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.10
-
setTitle
-
setWithAlpha
Whether colors may have alpha (translucency).When with-alpha is false, the color that is selected will be forced to have alpha == 1.
- Parameters:
withAlpha- the value for thewith-alphaproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.10
-