Interface ActionGroup<A extends ActionGroup<A>>

Type Parameters:
A - the action group type
All Superinterfaces:
Action<A>, Comparable<A>, Copyable<A>, Serializable
All Known Implementing Classes:
DefaultActionGroup

public interface ActionGroup<A extends ActionGroup<A>> extends Action<A>
Represents a group of actions usually represented as a dropdown.
  • Method Details

    • addActions

      default A addActions(Action<?>... actions)
      Adds the actions to this action group.
      Parameters:
      actions - the actions to add
      Returns:
      this
    • addAction

      default A addAction(Action<?> action)
      Adds an action using the action's ID as the key.
      Parameters:
      action - the action
      Returns:
      this
    • addAction

      default A addAction(String key, Action<?> action)
      Adds an action at the given key.
      Parameters:
      key - the key
      action - the action
      Returns:
      this