| Package | org.springextensions.actionscript.core.task.command |
| SVN browsing | TaskCommand.as |
| Fisheye | TaskCommand.as |
| Class | public class TaskCommand |
| Inheritance | TaskCommand CompositeCommand AbstractProgressOperation AbstractOperation flash.events.EventDispatcher |
| Implements | IResetable |
Documentation reference: tasks
| Method | Defined by | ||
|---|---|---|---|
|
TaskCommand(kind:CompositeCommandKind = null)
Creates a new
TaskCommand instance. | TaskCommand | ||
![]() |
Adds an
ICommand to the current ICompositeCommand. | CompositeCommand | |
![]() |
addCompleteListener(listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Convenience method for adding a listener to the OperationEvent.COMPLETE event.
| AbstractOperation | |
![]() |
addErrorListener(listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Convenience method for adding a listener to the OperationEvent.ERROR event.
| AbstractOperation | |
![]() |
addOperation(operationClass:Class, ... constructorArgs):ICompositeCommand
| CompositeCommand | |
![]() |
addProgressListener(listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Convenience method for adding a listener to the OperationEvent.PROGRESS event.
| AbstractProgressOperation | |
![]() |
addTimeoutListener(listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Convenience method for adding a listener to the OperationEvent.TIMEOUT event.
| AbstractOperation | |
![]() |
dispatchCompleteEvent(result:* = null):Boolean
Convenience method for dispatching a
OperationEvent.COMPLETE event. | AbstractOperation | |
![]() |
dispatchErrorEvent(error:* = null):Boolean
Convenience method for dispatching a
OperationEvent.ERROR event. | AbstractOperation | |
![]() |
dispatchTimeoutEvent():Boolean
Convenience method for dispatching a
OperationEvent.TIMEOUT event. | AbstractOperation | |
|
execute():*
| TaskCommand | ||
![]() |
removeCompleteListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.COMPLETE event.
| AbstractOperation | |
![]() |
removeErrorListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.ERROR event.
| AbstractOperation | |
![]() |
removeProgressListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.PROGRESS event.
| AbstractProgressOperation | |
![]() |
removeTimeoutListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.TIMEOUT event.
| AbstractOperation | |
|
reset():void
| TaskCommand | ||
| Method | Defined by | ||
|---|---|---|---|
|
addCommandListeners(asyncCommand:IOperation):void
Adds the
onCommandResult and onCommandFault event handlers to the specified IAsyncCommand instance. | TaskCommand | ||
![]() |
dispatchAfterCommandEvent(command:ICommand):void
| CompositeCommand | |
![]() |
dispatchBeforeCommandEvent(command:ICommand):void
| CompositeCommand | |
![]() |
dispatchProgressEvent():void
Convenience method for dispatching a
OperationEvent.PROGRESS event. | AbstractProgressOperation | |
![]() |
executeCommand(command:ICommand):void
If the specified
ICommand implements the IAsyncCommand interface the onCommandResult
and onCommandFault event handlers are added. | CompositeCommand | |
![]() |
executeCommandsInParallel():void
| CompositeCommand | |
|
executeNextCommand():void
| TaskCommand | ||
|
flowControlEvent_handler(event:TaskFlowControlEvent):void
| TaskCommand | ||
![]() |
onCommandFault(event:OperationEvent):void
| CompositeCommand | |
![]() |
onCommandResult(event:OperationEvent):void
| CompositeCommand | |
![]() |
removeCommand(asyncCommand:IOperation):void
| CompositeCommand | |
|
removeCommandListeners(asyncCommand:IOperation):void
Removes the
onCommandResult and onCommandFault event handlers from the specified IAsyncCommand instance. | TaskCommand | ||
![]() |
setCommands(value:Array):void
| CompositeCommand | |
![]() |
startTimeout():void
| AbstractOperation | |
| TaskCommand | () | constructor |
public function TaskCommand(kind:CompositeCommandKind = null)
Creates a new TaskCommand instance.
kind:CompositeCommandKind (default = null) |
| addCommandListeners | () | method |
protected override function addCommandListeners(asyncCommand:IOperation):void
Adds the onCommandResult and onCommandFault event handlers to the specified IAsyncCommand instance.
asyncCommand:IOperation |
| execute | () | method |
public override function execute():*
Returns
* |
| executeNextCommand | () | method |
protected override function executeNextCommand():void
| flowControlEvent_handler | () | method |
protected function flowControlEvent_handler(event:TaskFlowControlEvent):voidParameters
event:TaskFlowControlEvent |
| removeCommandListeners | () | method |
protected override function removeCommandListeners(asyncCommand:IOperation):void
Removes the onCommandResult and onCommandFault event handlers from the specified IAsyncCommand instance.
asyncCommand:IOperation |
| reset | () | method |
public function reset():void