Class ShortcutsSection.Builder<B extends 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 Details

    • Builder

      protected Builder()
      Default constructor for a Builder object.
  • Method Details

    • build

      public ShortcutsSection build()
      Finish building the ShortcutsSection object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to ShortcutsSection.
      Overrides:
      build in class Box.Builder<B extends ShortcutsSection.Builder<B>>
      Returns:
      a new instance of ShortcutsSection with the properties that were set in the Builder object.
    • setMaxHeight

      @Deprecated public B setMaxHeight(int maxHeight)
      Deprecated.
      This widget will be removed in GTK 5

      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 the max-height property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setSectionName

      @Deprecated public B setSectionName(String sectionName)
      Deprecated.
      This widget will be removed in GTK 5

      A unique name to identify this section among the sections added to the GtkShortcutsWindow.

      Setting the Gtk.ShortcutsWindow:section-name property to this string will make this section shown in the GtkShortcutsWindow.

      Parameters:
      sectionName - the value for the section-name property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setTitle

      @Deprecated public B setTitle(String title)
      Deprecated.
      This widget will be removed in GTK 5

      The string to show in the section selector of the GtkShortcutsWindow 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 the title property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setViewName

      @Deprecated public B setViewName(String viewName)
      Deprecated.
      This widget will be removed in GTK 5

      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 the view-name property
      Returns:
      the Builder instance is returned, to allow method chaining
    • onChangeCurrentPage

      @Deprecated public B onChangeCurrentPage(ShortcutsSection.ChangeCurrentPageCallback handler)
      Deprecated.
      This widget will be removed in GTK 5

      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: