Packageorg.springextensions.actionscript.mvcs.command
Classpublic class AbstractAsyncCommand
InheritanceAbstractAsyncCommand Inheritance flash.events.EventDispatcher
ImplementsIAsyncCommand
SubclassesCompositeCommand

Provides an implementation for the IAsyncCommand interface that asynchronous commands can subclass. Subclasses must override the "execute()" method.



Public Methods
 MethodDefined by
  
Creates a new AbstractAsyncCommand
AbstractAsyncCommand
  
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
Abstract method that executes this command.
AbstractAsyncCommand
Constructor detail
AbstractAsyncCommand()constructor
public function AbstractAsyncCommand()

Creates a new AbstractAsyncCommand

Method detail
addFaultListener()method
public function addFaultListener(listener:Function):void

Adds a listener for the "asyncCommandFault" event.

Parameters
listener:Function
addResultListener()method 
public function addResultListener(listener:Function):void

Adds a listener for the "asyncCommandResult" event.

Parameters
listener:Function
dispatchFaultEvent()method 
public function dispatchFaultEvent(fault:Object, bubbles:Boolean = false, cancelable:Boolean = false):void

Parameters
fault:Object
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)
dispatchResultEvent()method 
public function dispatchResultEvent(result:Object, bubbles:Boolean = false, cancelable:Boolean = false):void

Parameters
result:Object
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)
execute()method 
public function execute():void

Abstract method that executes this command. Throws an IllegalOperationError if called when not implemented by subclasses.