Class MnemonicTrigger.Builder<B extends MnemonicTrigger.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
MnemonicTrigger

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

      public B setKeyval(int keyval)
      The key value for the trigger.
      Parameters:
      keyval - the value for the keyval property
      Returns:
      the Builder instance is returned, to allow method chaining