Packagecom.developmentarc.framework.controllers.abstracts
Classpublic class AbstractAction
InheritanceAbstractAction Inheritance flash.events.EventDispatcher
ImplementsIAction

The AbstractAction provides the base implementation of the IAction interface and supports the ability to add, remove and update the command list for the action. This class is the recommended base class for all Actions.



Public Properties
 PropertyDefined by
  commands : Array
Defines the commands that are registed for this action type.
AbstractAction
Protected Properties
 PropertyDefined by
  commandList : HashTable
Stores the list of the commands for Action.
AbstractAction
Public Methods
 MethodDefined by
  
Constructor.
AbstractAction
  
addCommand(command:String):void
Enables the ability to add a single command to the Action.
AbstractAction
  
applyAction(command:Event):void
Called by the EventBroker when a register command has been dispatched.
AbstractAction
  
Enables the ability to remove all commands for the action.
AbstractAction
  
removeCommand(command:String):void
The ability to remove a specific command from Action.
AbstractAction
Property detail
commandListproperty
protected var commandList:HashTable

Stores the list of the commands for Action.

commandsproperty 
commands:Array  [read-write]

Defines the commands that are registed for this action type. This Array is a list of strings that define the Command types that should call applyAction when dispatched.

Implementation
    public function get commands():Array
    public function set commands(value:Array):void
Constructor detail
AbstractAction()constructor
public function AbstractAction()

Constructor.

Method detail
addCommand()method
public function addCommand(command:String):void

Enables the ability to add a single command to the Action.

Parameters
command:String — The Command type to register for.
applyAction()method 
public function applyAction(command:Event):void

Called by the EventBroker when a register command has been dispatched. This method must be overriden by the base class.

Parameters
command:Event — The command that was dispatched.

Throws
— when not overriden.
removeAllCommands()method 
public function removeAllCommands():void

Enables the ability to remove all commands for the action.

removeCommand()method 
public function removeCommand(command:String):void

The ability to remove a specific command from Action.

Parameters
command:String — The command to remove.