Package org.gnome.adw
Class ShortcutsItem.Builder<B extends ShortcutsItem.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.adw.ShortcutsItem.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
ShortcutsItem
public static class ShortcutsItem.Builder<B extends ShortcutsItem.Builder<B>>
extends GObject.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theShortcutsItemobject.setAccelerator(String accelerator) The shortcut accelerator.setActionName(String actionName) Fully qualified action name to get the accelerator from.setDirection(TextDirection direction) The shortcut direction.setSubtitle(String subtitle) The subtitle of the shortcut.The title of the shortcut.Methods 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 theShortcutsItemobject. 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 toShortcutsItem.- Overrides:
buildin classGObject.Builder<B extends ShortcutsItem.Builder<B>>- Returns:
- a new instance of
ShortcutsItemwith the properties that were set in the Builder object.
-
setAccelerator
The shortcut accelerator.Accelerator must be in the format
ShortcutLabelaccepts.- Parameters:
accelerator- the value for theacceleratorproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.8
-
setActionName
-
setDirection
The shortcut direction.If set to
Gtk.TextDirection.LTRorGtk.TextDirection.RTL, the shortcut will only be displayed for this direction.- Parameters:
direction- the value for thedirectionproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.8
-
setSubtitle
-
setTitle
-