Package org.gnome.gtk
Class ShortcutsSection.Builder<B extends ShortcutsSection.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.Widget.Builder<B>
org.gnome.gtk.Box.Builder<B>
org.gnome.gtk.ShortcutsSection.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
Accessible.Builder<B>,Orientable.Builder<B>,BuilderInterface
- Enclosing class:
ShortcutsSection
public static class ShortcutsSection.Builder<B extends ShortcutsSection.Builder<B>>
extends Box.Builder<B>
implements Accessible.Builder<B>, Orientable.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theShortcutsSectionobject.Deprecated.This widget will be removed in GTK 5setMaxHeight(int maxHeight) Deprecated.This widget will be removed in GTK 5setSectionName(String sectionName) Deprecated.This widget will be removed in GTK 5Deprecated.This widget will be removed in GTK 5setViewName(String viewName) Deprecated.This widget will be removed in GTK 5Methods inherited from class org.gnome.gtk.Box.Builder
setBaselineChild, setBaselinePosition, setHomogeneous, setSpacingMethods 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, getArenaMethods inherited from interface org.gnome.gtk.Orientable.Builder
setOrientation
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theShortcutsSectionobject. 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 toShortcutsSection.- Overrides:
buildin classBox.Builder<B extends ShortcutsSection.Builder<B>>- Returns:
- a new instance of
ShortcutsSectionwith the properties that were set in the Builder object.
-
setMaxHeight
Deprecated.This widget will be removed in GTK 5The maximum number of lines to allow per column.This property can be used to influence how the groups in this section are distributed across pages and columns. The default value of 15 should work in most cases.
- Parameters:
maxHeight- the value for themax-heightproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setSectionName
Deprecated.This widget will be removed in GTK 5A unique name to identify this section among the sections added to theGtkShortcutsWindow.Setting the
Gtk.ShortcutsWindow:section-nameproperty to this string will make this section shown in theGtkShortcutsWindow.- Parameters:
sectionName- the value for thesection-nameproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setTitle
Deprecated.This widget will be removed in GTK 5The string to show in the section selector of theGtkShortcutsWindowfor this section.If there is only one section, you don't need to set a title, since the section selector will not be shown in this case.
- Parameters:
title- the value for thetitleproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setViewName
Deprecated.This widget will be removed in GTK 5A view name to filter the groups in this section by.See
Gtk.ShortcutsGroup:view.Applications are expected to use the
Gtk.ShortcutsWindow:view-nameproperty for this purpose.- Parameters:
viewName- the value for theview-nameproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
onChangeCurrentPage
Deprecated.This widget will be removed in GTK 5Emitted when we change the current page.The default bindings for this signal are
Ctrl+PgUp,PgUp,Ctrl+PgDn,PgDn.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-