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.
Since:
1.8
  • 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

      public B setAccelerator(String accelerator)
      The displayed accelerator.
      Parameters:
      accelerator - the value for the accelerator property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      1.8
    • setDisabledText

      public B setDisabledText(String disabledText)
      The text 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
      Since:
      1.8