Package org.gnome.gtk
Class CellRendererAccel.Builder<B extends CellRendererAccel.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.CellRendererAccel.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
CellRendererAccel
public static class CellRendererAccel.Builder<B extends CellRendererAccel.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 theCellRendererAccel
object.Gets emitted when the user has removed the accelerator.Gets emitted when the user has selected a new accelerator.setAccelKey
(int accelKey) The keyval of the accelerator.setAccelMode
(CellRendererAccelMode accelMode) Determines if the edited accelerators are GTK accelerators.setAccelMods
(Set<ModifierType> accelMods) The modifier mask of the accelerator.setAccelMods
(ModifierType... accelMods) The modifier mask of the accelerator.setKeycode
(int keycode) The hardware keycode of the accelerator.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 theCellRendererAccel
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 toCellRendererAccel
.- Overrides:
build
in classCellRendererText.Builder<B extends CellRendererAccel.Builder<B>>
- Returns:
- a new instance of
CellRendererAccel
with the properties that were set in the Builder object.
-
setAccelKey
The keyval of the accelerator.- Parameters:
accelKey
- the value for theaccel-key
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setAccelMode
Determines if the edited accelerators are GTK accelerators. If they are, consumed modifiers are suppressed, only accelerators accepted by GTK are allowed, and the accelerators are rendered in the same way as they are in menus.- Parameters:
accelMode
- the value for theaccel-mode
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setAccelMods
The modifier mask of the accelerator.- Parameters:
accelMods
- the value for theaccel-mods
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setKeycode
The hardware keycode of the accelerator. Note that the hardware keycode is only relevant if the key does not have a keyval. Normally, the keyboard configuration should assign keyvals to all keys.- Parameters:
keycode
- the value for thekeycode
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setAccelMods
The modifier mask of the accelerator.- Parameters:
accelMods
- the value for theaccel-mods
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
onAccelCleared
Gets emitted when the user has removed the accelerator.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onAccelEdited
Gets emitted when the user has selected a new accelerator.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-