Class ShortcutsGroup.Builder<B extends ShortcutsGroup.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:
ShortcutsGroup

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

      @Deprecated public B setAccelSizeGroup(SizeGroup accelSizeGroup)
      Deprecated.
      This widget will be removed in GTK 5

      The size group for the accelerator portion of shortcuts in this group.

      This is used internally by GTK, and must not be modified by applications.

      Parameters:
      accelSizeGroup - the value for the accel-size-group 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 title for this group of shortcuts.
      Parameters:
      title - the value for the title property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setTitleSizeGroup

      @Deprecated public B setTitleSizeGroup(SizeGroup titleSizeGroup)
      Deprecated.
      This widget will be removed in GTK 5

      The size group for the textual portion of shortcuts in this group.

      This is used internally by GTK, and must not be modified by applications.

      Parameters:
      titleSizeGroup - the value for the title-size-group property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setView

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

      An optional view that the shortcuts in this group are relevant for.

      The group will be hidden if the Gtk.ShortcutsWindow:view-name property does not match the view of this group.

      Set this to null to make the group always visible.

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