Class PadController.Builder<B extends PadController.Builder<B>>

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

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

      public B setActionGroup(ActionGroup actionGroup)
      The action group of the controller.
      Parameters:
      actionGroup - the value for the action-group property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setPad

      public B setPad(Device pad)
      The pad of the controller.
      Parameters:
      pad - the value for the pad property
      Returns:
      the Builder instance is returned, to allow method chaining