Class AlternativeTrigger.Builder<B extends AlternativeTrigger.Builder<B>>

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

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

      public B setFirst(ShortcutTrigger first)
      The first GtkShortcutTrigger to check.
      Parameters:
      first - the value for the first property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setSecond

      public B setSecond(ShortcutTrigger second)
      The second GtkShortcutTrigger to check.
      Parameters:
      second - the value for the second property
      Returns:
      the Builder instance is returned, to allow method chaining