Class ShortcutsShortcut.Builder<B extends ShortcutsShortcut.Builder<B>>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
Accessible.Builder<B>,BuilderInterface
- Enclosing class:
ShortcutsShortcut
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theShortcutsShortcutobject.setAccelerator(String accelerator) Deprecated.This widget will be removed in GTK 5setAccelSizeGroup(SizeGroup accelSizeGroup) Deprecated.This widget will be removed in GTK 5setActionName(String actionName) Deprecated.This widget will be removed in GTK 5setDirection(TextDirection direction) Deprecated.This widget will be removed in GTK 5Deprecated.This widget will be removed in GTK 5setIconSet(boolean iconSet) Deprecated.This widget will be removed in GTK 5setShortcutType(ShortcutType shortcutType) Deprecated.This widget will be removed in GTK 5setSubtitle(String subtitle) Deprecated.This widget will be removed in GTK 5setSubtitleSet(boolean subtitleSet) Deprecated.This widget will be removed in GTK 5Deprecated.This widget will be removed in GTK 5setTitleSizeGroup(SizeGroup titleSizeGroup) Deprecated.This widget will be removed in GTK 5Methods inherited from class org.gnome.gtk.Widget.Builder
onDestroy, onDirectionChanged, onHide, onKeynavFailed, onMap, onMnemonicActivate, onMoveFocus, onQueryTooltip, onRealize, onShow, onStateFlagsChanged, onUnmap, onUnrealize, setCanFocus, setCanTarget, setCssClasses, setCssName, setCursor, setFocusable, setFocusOnClick, setHalign, setHasTooltip, setHeightRequest, setHexpand, setHexpandSet, setLayoutManager, setLimitEvents, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setName, setOpacity, setOverflow, setReceivesDefault, setSensitive, setTooltipMarkup, setTooltipText, setValign, setVexpand, setVexpandSet, setVisible, setWidthRequestMethods inherited from class org.gnome.gobject.GObject.Builder
onNotifyMethods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gnome.gtk.Accessible.Builder
setAccessibleRoleMethods inherited from interface org.javagi.gobject.BuilderInterface
addBuilderProperty, connect, connect, getArena
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theShortcutsShortcutobject. 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 toShortcutsShortcut.- Overrides:
buildin classWidget.Builder<B extends ShortcutsShortcut.Builder<B>>- Returns:
- a new instance of
ShortcutsShortcutwith the properties that were set in the Builder object.
-
setAccelSizeGroup
Deprecated.This widget will be removed in GTK 5The size group for the accelerator portion of this shortcut.This is used internally by GTK, and must not be modified by applications.
- Parameters:
accelSizeGroup- the value for theaccel-size-groupproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setAccelerator
Deprecated.This widget will be removed in GTK 5The accelerator(s) represented by this object.This property is used if
Gtk.ShortcutsShortcut:shortcut-typeis set toShortcutType.ACCELERATOR.The syntax of this property is (an extension of) the syntax understood by
Gtk.acceleratorParse(java.lang.String, org.javagi.base.Out<java.lang.Integer>, org.javagi.base.Out<java.util.Set<org.gnome.gdk.ModifierType>>). Multiple accelerators can be specified by separating them with a space, but keep in mind that the available width is limited.It is also possible to specify ranges of shortcuts, using
...between the keys. Sequences of keys can be specified using a+or&between the keys.Examples:
- A single shortcut:
<ctl><alt>delete - Two alternative shortcuts:
<shift>a Home - A range of shortcuts:
<alt>1...<alt>9 - Several keys pressed together:
Control_L&Control_R - A sequence of shortcuts or keys:
<ctl>c+<ctl>x
Use "+" instead of "&" when the keys may (or have to be) pressed sequentially (e.g use "t+t" for 'press the t key twice').
Note that
<,>and&need to be escaped as<,> and& when used in .ui files.- Parameters:
accelerator- the value for theacceleratorproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
- A single shortcut:
-
setActionName
Deprecated.This widget will be removed in GTK 5A detailed action name.If this is set for a shortcut of type
ShortcutType.ACCELERATOR, then GTK will use the accelerators that are associated with the action viaApplication.setAccelsForAction(java.lang.String, java.lang.String[]), and settingGtk.ShortcutsShortcut:acceleratoris not necessary.- Parameters:
actionName- the value for theaction-nameproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setDirection
Deprecated.This widget will be removed in GTK 5The text direction for which this shortcut is active.If the shortcut is used regardless of the text direction, set this property to
TextDirection.NONE.- Parameters:
direction- the value for thedirectionproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setIcon
Deprecated.This widget will be removed in GTK 5An icon to represent the shortcut or gesture.This property is used if
Gtk.ShortcutsShortcut:shortcut-typeis set toShortcutType.GESTURE.For the other predefined gesture types, GTK provides an icon on its own.
- Parameters:
icon- the value for theiconproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setIconSet
Deprecated.This widget will be removed in GTK 5trueif an icon has been set.- Parameters:
iconSet- the value for theicon-setproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setShortcutType
Deprecated.This widget will be removed in GTK 5The type of shortcut that is represented.- Parameters:
shortcutType- the value for theshortcut-typeproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setSubtitle
Deprecated.This widget will be removed in GTK 5The subtitle for the shortcut or gesture.This is typically used for gestures and should be a short, one-line text that describes the gesture itself. For the predefined gesture types, GTK provides a subtitle on its own.
- Parameters:
subtitle- the value for thesubtitleproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setSubtitleSet
Deprecated.This widget will be removed in GTK 5trueif a subtitle has been set.- Parameters:
subtitleSet- the value for thesubtitle-setproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setTitle
Deprecated.This widget will be removed in GTK 5The textual description for the shortcut or gesture represented by this object.This should be a short string that can fit in a single line.
- Parameters:
title- the value for thetitleproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setTitleSizeGroup
Deprecated.This widget will be removed in GTK 5The size group for the textual portion of this shortcut.This is used internally by GTK, and must not be modified by applications.
- Parameters:
titleSizeGroup- the value for thetitle-size-groupproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-