Packageorg.springextensions.actionscript.core.command
SVN browsingICompositeCommand.as
FisheyeICompositeCommand.as
Interfacepublic interface ICompositeCommand extends ICommand, IOperation, flash.events.IEventDispatcher
ImplementorsCompositeCommand

Interface that needs to be implemented by command classes that are composed of multiple commands.



Documentation reference: composite commands


Public Properties
 PropertyDefined by
 Inheritederror : *
The error of this operation or null if no error occurred during this operation.
IOperation
  kind : CompositeCommandKind
[read-only]
ICompositeCommand
  numCommands : uint
[read-only] The number of pending commands.
ICompositeCommand
 Inheritedresult : *
The result of this operation or null if the operation does not have a result.
IOperation
 Inheritedtimeout : int
The timeout in milliseconds.
IOperation
Public Methods
 MethodDefined by
  
Adds an ICommand to the current ICompositeCommand.
ICompositeCommand
 Inherited
addCompleteListener(listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Convenience method for adding a listener to the OperationEvent.COMPLETE event.
IOperation
 Inherited
addErrorListener(listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Convenience method for adding a listener to the OperationEvent.ERROR event.
IOperation
  
addOperation(operationClass:Class, ... constructorArgs):ICompositeCommand
Adds a Class that is an IOperation implementation along with its optional cosntructor arguments.
ICompositeCommand
 Inherited
addTimeoutListener(listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Convenience method for adding a listener to the OperationEvent.TIMEOUT event.
IOperation
 Inherited
execute():*
Executes the command.
ICommand
 Inherited
removeCompleteListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.COMPLETE event.
IOperation
 Inherited
removeErrorListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.ERROR event.
IOperation
 Inherited
removeTimeoutListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.TIMEOUT event.
IOperation
Events
 EventSummaryDefined by
   Dispatched after an ICommand from the collection was executed.ICompositeCommand
   Dispatched before an ICommand from the collection is executed.ICompositeCommand
   Dispatched when the CompositeCommand is finised executing its collection of ICommands ICompositeCommand
   Dispatched when the CompositeCommand encounters an error.ICompositeCommand
 Inherited Dispatched when the current IOperation completed successfully.IOperation
 Inherited Dispatched when the current IOperation encountered an error.IOperation
 Inherited Dispatched when the current IOperation timed out.IOperation
Property detail
kindproperty
kind:CompositeCommandKind  [read-only]Implementation
    public function get kind():CompositeCommandKind
numCommandsproperty 
numCommands:uint  [read-only]

The number of pending commands.

Implementation
    public function get numCommands():uint
Method detail
addCommand()method
public function addCommand(command:ICommand):ICompositeCommand

Adds an ICommand to the current ICompositeCommand.

Parameters
command:ICommand

Returns
ICompositeCommand — The current ICompositeCommand, this way calls to addCommand() can be chained.
addOperation()method 
public function addOperation(operationClass:Class, ... constructorArgs):ICompositeCommand

Adds a Class that is an IOperation implementation along with its optional cosntructor arguments. Upon execution this class will be instantiated when the current ICompositeCommand reaches it in its execution logic.

Parameters
operationClass:Class — The specified Class.
 
... constructorArgs — The optional constructor arguments for the operation Class.

Returns
ICompositeCommand — The current ICompositeCommand, this way calls to addCommand() can be chained.
Event detail
compositeCommandAfterExecuteCommandevent 
Event object type: org.springextensions.actionscript.core.command.event.CompositeCommandEvent

Dispatched after an ICommand from the collection was executed.

compositeCommandBeforeExecuteCommandevent  
Event object type: org.springextensions.actionscript.core.command.event.CompositeCommandEvent

Dispatched before an ICommand from the collection is executed.

compositeCommandCompleteevent  
Event object type: org.springextensions.actionscript.core.command.event.CompositeCommandEvent

Dispatched when the CompositeCommand is finised executing its collection of ICommands

compositeCommandErrorevent  
Event object type: org.springextensions.actionscript.core.command.event.CompositeCommandEvent

Dispatched when the CompositeCommand encounters an error.