| Package | com.developmentarc.framework.controllers.abstracts |
| Class | public class AbstractAction |
| Inheritance | AbstractAction flash.events.EventDispatcher |
| Implements | IAction |
| Property | Defined by | ||
|---|---|---|---|
| commands : Array
Defines the commands that are registed for this action type.
| AbstractAction | ||
| Property | Defined by | ||
|---|---|---|---|
| commandList : HashTable
Stores the list of the commands for Action.
| AbstractAction | ||
| Method | Defined 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 | ||
|
removeAllCommands():void
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 | ||
| commandList | property |
protected var commandList:HashTableStores the list of the commands for Action.
| commands | property |
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
| AbstractAction | () | constructor |
public function AbstractAction()Constructor.
| addCommand | () | method |
public function addCommand(command:String):voidEnables the ability to add a single command to the Action.
Parameterscommand:String — The Command type to register for.
|
| applyAction | () | method |
public function applyAction(command:Event):voidCalled by the EventBroker when a register command has been dispatched. This method must be overriden by the base class.
Parameterscommand:Event — The command that was dispatched.
|
— when not overriden.
|
| removeAllCommands | () | method |
public function removeAllCommands():voidEnables the ability to remove all commands for the action.
| removeCommand | () | method |
public function removeCommand(command:String):voidThe ability to remove a specific command from Action.
Parameterscommand:String — The command to remove.
|