Package org.gnome.gtk
Class ColorDialog.Builder<B extends ColorDialog.Builder<B>>
java.lang.Object
io.github.jwharm.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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theColorDialog
object.setModal
(boolean modal) Whether the color chooser dialog is modal.A title that may be shown on the color chooser dialog that is presented byColorDialog.chooseRgba(org.gnome.gtk.Window, org.gnome.gdk.RGBA, org.gnome.gio.Cancellable, org.gnome.gio.AsyncReadyCallback)
.setWithAlpha
(boolean withAlpha) Whether colors may have alpha (translucency).Methods inherited from class org.gnome.gobject.GObject.Builder
onNotify
Methods inherited from class io.github.jwharm.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building theColorDialog
object. 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:
build
in classGObject.Builder<B extends ColorDialog.Builder<B>>
- Returns:
- a new instance of
ColorDialog
with the properties that were set in the Builder object.
-
setModal
Whether the color chooser dialog is modal.- Parameters:
modal
- the value for themodal
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setTitle
A title that may be shown on the color chooser dialog that is presented byColorDialog.chooseRgba(org.gnome.gtk.Window, org.gnome.gdk.RGBA, org.gnome.gio.Cancellable, org.gnome.gio.AsyncReadyCallback)
.- Parameters:
title
- the value for thetitle
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
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-alpha
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-