Package org.gnome.gtk
Class CellRendererSpin.Builder<B extends CellRendererSpin.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.CellRendererText.Builder<B>
org.gnome.gtk.CellRendererSpin.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
CellRendererSpin
public static class CellRendererSpin.Builder<B extends CellRendererSpin.Builder<B>>
extends CellRendererText.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theCellRendererSpin
object.setAdjustment
(Adjustment adjustment) The adjustment that holds the value of the spinbutton.setClimbRate
(double climbRate) The acceleration rate when you hold down a button.setDigits
(int digits) The number of decimal places to display.Methods inherited from class org.gnome.gtk.CellRendererText.Builder
onEdited, setAlignment, setAlignSet, setAttributes, setBackground, setBackgroundRgba, setBackgroundSet, setEditable, setEditableSet, setEllipsize, setEllipsizeSet, setFamily, setFamilySet, setFont, setFontDesc, setForeground, setForegroundRgba, setForegroundSet, setLanguage, setLanguageSet, setMarkup, setMaxWidthChars, setPlaceholderText, setRise, setRiseSet, setScale, setScaleSet, setSingleParagraphMode, setSize, setSizePoints, setSizeSet, setStretch, setStretchSet, setStrikethrough, setStrikethroughSet, setStyle, setStyleSet, setText, setUnderline, setUnderlineSet, setVariant, setVariantSet, setWeight, setWeightSet, setWidthChars, setWrapMode, setWrapWidth
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 theCellRendererSpin
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 toCellRendererSpin
.- Overrides:
build
in classCellRendererText.Builder<B extends CellRendererSpin.Builder<B>>
- Returns:
- a new instance of
CellRendererSpin
with the properties that were set in the Builder object.
-
setAdjustment
The adjustment that holds the value of the spinbutton. This must be non-null
for the cell renderer to be editable.- Parameters:
adjustment
- the value for theadjustment
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setClimbRate
The acceleration rate when you hold down a button.- Parameters:
climbRate
- the value for theclimb-rate
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setDigits
The number of decimal places to display.- Parameters:
digits
- the value for thedigits
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-