Class CompoundAction

java.lang.Object
com.blackrook.gui.action.CompoundAction
All Implemented Interfaces:
GUIAction

public class CompoundAction extends Object implements GUIAction
An action encapsulates and calls other actions. Actions can be added to or removed from this one at will.
Author:
Matthew Tropiano
  • Method Details

    • create

      public static CompoundAction create(GUIAction... actions)
      Creates a new compound action from a set of actions.
      Parameters:
      actions - the actions to add.
      Returns:
      the created action.
    • call

      public final void call(GUIEvent event)
      Description copied from interface: GUIAction
      The method stub called when this action is invoked.
      Specified by:
      call in interface GUIAction
      Parameters:
      event - the event that was passed into this action.