Package org.gnome.gtk
Class CellRendererToggle.Builder<B extends CellRendererToggle.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gobject.InitiallyUnowned.Builder<B>
org.gnome.gtk.CellRenderer.Builder<B>
org.gnome.gtk.CellRendererToggle.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
CellRendererToggle
public static class CellRendererToggle.Builder<B extends CellRendererToggle.Builder<B>>
extends CellRenderer.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theCellRendererToggle
object.The ::toggled signal is emitted when the cell is toggled.setActivatable
(boolean activatable) setActive
(boolean active) setInconsistent
(boolean inconsistent) setRadio
(boolean radio) Methods inherited from class org.gnome.gtk.CellRenderer.Builder
onEditingCanceled, onEditingStarted, setCellBackground, setCellBackgroundRgba, setCellBackgroundSet, setHeight, setIsExpanded, setIsExpander, setMode, setSensitive, setVisible, setWidth, setXalign, setXpad, setYalign, setYpad
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 theCellRendererToggle
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 toCellRendererToggle
.- Overrides:
build
in classCellRenderer.Builder<B extends CellRendererToggle.Builder<B>>
- Returns:
- a new instance of
CellRendererToggle
with the properties that were set in the Builder object.
-
setActivatable
-
setActive
-
setInconsistent
-
setRadio
-
onToggled
The ::toggled signal is emitted when the cell is toggled.It is the responsibility of the application to update the model with the correct value to store at
path
. Often this is simply the opposite of the value currently stored atpath
.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-