| Package | org.springextensions.actionscript.mvcs.command |
| Class | public class CompositeCommand |
| Inheritance | CompositeCommand AbstractAsyncCommand flash.events.EventDispatcher |
| Implements | ICompositeCommand |
| Property | Defined by | ||
|---|---|---|---|
| currentCommand : ICommand | CompositeCommand | ||
| failOnFault : Boolean = false | CompositeCommand | ||
| Method | Defined by | ||
|---|---|---|---|
|
Creates a new CompositeCommand object.
| CompositeCommand | ||
|
addCommand(command:ICommand):void
Adds a command to this composite command.
| CompositeCommand | ||
![]() |
addFaultListener(listener:Function):void
Adds a listener for the "asyncCommandFault" event.
| AbstractAsyncCommand | |
![]() |
addResultListener(listener:Function):void
Adds a listener for the "asyncCommandResult" event.
| AbstractAsyncCommand | |
![]() |
dispatchFaultEvent(fault:Object, bubbles:Boolean = false, cancelable:Boolean = false):void
| AbstractAsyncCommand | |
![]() |
dispatchResultEvent(result:Object, bubbles:Boolean = false, cancelable:Boolean = false):void
| AbstractAsyncCommand | |
|
execute():void
Executes the command.
| CompositeCommand | ||
| Method | Defined by | ||
|---|---|---|---|
|
executeCommand(command:ICommand):void
Executes the given command.
| CompositeCommand | ||
|
executeNextCommand():void
Executes the next command.
| CompositeCommand | ||
| currentCommand | property |
public var currentCommand:ICommand
| failOnFault | property |
public var failOnFault:Boolean = false
| CompositeCommand | () | constructor |
public function CompositeCommand()Creates a new CompositeCommand object.
| addCommand | () | method |
public function addCommand(command:ICommand):voidAdds a command to this composite command.
Parameterscommand:ICommand |
| execute | () | method |
public override function execute():voidExecutes the command.
| executeCommand | () | method |
protected function executeCommand(command:ICommand):voidExecutes the given command.
Parameterscommand:ICommand |
| executeNextCommand | () | method |
protected function executeNextCommand():voidExecutes the next command.