Class SignalAction.Builder<B extends SignalAction.Builder<B>>

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

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

      public B setSignalName(String signalName)
      The name of the signal to emit.
      Parameters:
      signalName - the value for the signal-name property
      Returns:
      the Builder instance is returned, to allow method chaining