Package org.gnome.gtk
Class ShortcutsSection.Builder<B extends ShortcutsSection.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.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:
BuilderInterface
,Accessible.Builder<B>
,Orientable.Builder<B>
- 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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theShortcutsSection
object.Emitted when we change the current page.setMaxHeight
(int maxHeight) The maximum number of lines to allow per column.setSectionName
(String sectionName) A unique name to identify this section among the sections added to theGtkShortcutsWindow
.The string to show in the section selector of theGtkShortcutsWindow
for this section.setViewName
(String viewName) A view name to filter the groups in this section by.Methods inherited from class org.gnome.gtk.Box.Builder
setBaselineChild, setBaselinePosition, setHomogeneous, setSpacing
Methods 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, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setName, setOpacity, setOverflow, setReceivesDefault, setSensitive, setTooltipMarkup, setTooltipText, setValign, setVexpand, setVexpandSet, setVisible, setWidthRequest
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.gnome.gtk.Accessible.Builder
setAccessibleRole
Methods inherited from interface io.github.jwharm.javagi.gobject.BuilderInterface
addBuilderProperty, connect, connect, getArena
Methods inherited from interface org.gnome.gtk.Orientable.Builder
setOrientation
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building theShortcutsSection
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 toShortcutsSection
.- Overrides:
build
in classBox.Builder<B extends ShortcutsSection.Builder<B>>
- Returns:
- a new instance of
ShortcutsSection
with the properties that were set in the Builder object.
-
setMaxHeight
The 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-height
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setSectionName
A unique name to identify this section among the sections added to theGtkShortcutsWindow
.Setting the
Gtk.ShortcutsWindow:section-name
property to this string will make this section shown in theGtkShortcutsWindow
.- Parameters:
sectionName
- the value for thesection-name
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setTitle
The string to show in the section selector of theGtkShortcutsWindow
for 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 thetitle
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setViewName
A view name to filter the groups in this section by.See
Gtk.ShortcutsGroup:view
.Applications are expected to use the
Gtk.ShortcutsWindow:view-name
property for this purpose.- Parameters:
viewName
- the value for theview-name
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
onChangeCurrentPage
Emitted 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
Builder
instance is returned, to allow method chaining - See Also:
-