Package org.gnome.gtk
Class CellRendererAccel.Builder<B extends CellRendererAccel.Builder<B>>
java.lang.Object
org.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theCellRendererAccelobject.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, setWrapWidthMethods inherited from class org.gnome.gtk.CellRenderer.Builder
onEditingCanceled, onEditingStarted, setCellBackground, setCellBackgroundRgba, setCellBackgroundSet, setHeight, setIsExpanded, setIsExpander, setMode, setSensitive, setVisible, setWidth, setXalign, setXpad, setYalign, setYpadMethods inherited from class org.gnome.gobject.GObject.Builder
onNotifyMethods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theCellRendererAccelobject. 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:
buildin classCellRendererText.Builder<B extends CellRendererAccel.Builder<B>>- Returns:
- a new instance of
CellRendererAccelwith the properties that were set in the Builder object.
-
setAccelKey
The keyval of the accelerator.- Parameters:
accelKey- the value for theaccel-keyproperty- Returns:
- the
Builderinstance 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-modeproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setAccelMods
The modifier mask of the accelerator.- Parameters:
accelMods- the value for theaccel-modsproperty- Returns:
- the
Builderinstance 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 thekeycodeproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setAccelMods
The modifier mask of the accelerator.- Parameters:
accelMods- the value for theaccel-modsproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
onAccelCleared
Gets emitted when the user has removed the accelerator.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance 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
Builderinstance is returned, to allow method chaining - See Also:
-