Class ShortcutsWindow.Builder<B extends ShortcutsWindow.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
Accessible.Builder<B>, BuilderInterface
Enclosing class:
ShortcutsWindow

public static class ShortcutsWindow.Builder<B extends ShortcutsWindow.Builder<B>> extends Window.Builder<B> implements Accessible.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 ShortcutsWindow build()
      Finish building the ShortcutsWindow object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to ShortcutsWindow.
      Overrides:
      build in class Window.Builder<B extends ShortcutsWindow.Builder<B>>
      Returns:
      a new instance of ShortcutsWindow with the properties that were set in the Builder object.
    • setSectionName

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

      The name of the section to show.

      This should be the section-name of one of the GtkShortcutsSection objects that are in this shortcuts window.

      Parameters:
      sectionName - the value for the section-name 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

      The view name by which to filter the contents.

      This should correspond to the Gtk.ShortcutsGroup:view property of some of the ShortcutsGroup objects that are inside this shortcuts window.

      Set this to null to show all groups.

      Parameters:
      viewName - the value for the view-name property
      Returns:
      the Builder instance is returned, to allow method chaining
    • onClose

      @Deprecated public B onClose(ShortcutsWindow.CloseCallback handler)
      Deprecated.
      This widget will be removed in GTK 5

      Emitted when the user uses a keybinding to close the window.

      This is a keybinding signal.

      The default binding for this signal is the Escape key.

      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      See Also:
    • onSearch

      @Deprecated public B onSearch(ShortcutsWindow.SearchCallback handler)
      Deprecated.
      This widget will be removed in GTK 5

      Emitted when the user uses a keybinding to start a search.

      This is a keybinding signal.

      The default binding for this signal is Control+F.

      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      See Also: