ASyncCommand

Kind of class:public interface
Package:com.bourre.commands
Inherits from:Command
Implemented by:
Known subinterfaces:
Author:Francis Bourre
Classpath:com.bourre.commands.ASyncCommand
File last modified:Wednesday, 23 January 2008, 14:47:59
An asynchronous command is a runnable command, which is not terminated
at the end of the execute call, for example a remoting request,
or a file loading.

An asynchronous command define a specific ending for the operation. The
command dispatch an onCommandEnd event at the end of its process.

See the How to use the Command
pattern implementation in LowRA
document for more details on
the commands package structure.

See also:

Summary


Instance methods
Instance methods inherited from Command

Instance methods

addASyncCommandListener

public function addASyncCommandListener (
listener:ASyncCommandListener, rest) : Boolean

Adds the passed-in command listener object as listener
for this command events.

The addASyncCommandListener function support
the custom arguments provided by the

EventBroadcaster.addEventListener() method.

Parameters:
listener:
the listener object which want to
receive notification from this command
rest :
optional arguments corresponding to the
EventBroadcaster.addEventListener() behavior.
Returns:
  • true if the listener have been added as result
    of the call
See also:

  • EventBroadcaster.addEventListener() documentation

fireCommandEndEvent

public function fireCommandEndEvent (
) : void

Fires the onCommandEnd event to the listeners of this command.

removeASyncCommandListener

public function removeASyncCommandListener (
listener:ASyncCommandListener) : Boolean

Removes the passed-in command listener object as listener
for this command events.
Parameters:
listener:
the listener object which to remove from this
command's listeners
Returns:
  • true if the listener have been removed as result
    of the call
See also:

  • EventBroadcaster.addEventListener() documentation