Class ShortcutLabel.Builder<B extends ShortcutLabel.Builder<B>>

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

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

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

      The accelerator that self displays.

      See Gtk.ShortcutsShortcut:accelerator for the accepted syntax.

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

      @Deprecated public B setDisabledText(String disabledText)
      Deprecated.
      This widget will be removed in GTK 5
      The text that is displayed when no accelerator is set.
      Parameters:
      disabledText - the value for the disabled-text property
      Returns:
      the Builder instance is returned, to allow method chaining