Package org.gnome.gtk
Class CellRendererSpinner.Builder<B extends CellRendererSpinner.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.CellRendererSpinner.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
CellRendererSpinner
public static class CellRendererSpinner.Builder<B extends CellRendererSpinner.Builder<B>>
extends CellRenderer.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
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 theCellRendererSpinner
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 toCellRendererSpinner
.- Overrides:
build
in classCellRenderer.Builder<B extends CellRendererSpinner.Builder<B>>
- Returns:
- a new instance of
CellRendererSpinner
with the properties that were set in the Builder object.
-
setActive
Whether the spinner is active (ie. shown) in the cell- Parameters:
active
- the value for theactive
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setPulse
Pulse of the spinner. Increment this value to draw the next frame of the spinner animation. Usually, you would update this value in a timeout.By default, the
GtkSpinner
widget draws one full cycle of the animation, consisting of 12 frames, in 750 milliseconds.- Parameters:
pulse
- the value for thepulse
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setSize
-