Class NamedAction.Builder<B extends NamedAction.Builder<B>>

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

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

      public B setActionName(String actionName)
      The name of the action to activate.
      Parameters:
      actionName - the value for the action-name property
      Returns:
      the Builder instance is returned, to allow method chaining