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
or a file loading.
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.
Summary
Instance methods
- addASyncCommandListener (listener:ASyncCommandListener, rest) : Boolean
- Adds the passed-in command listener object as listener
- removeASyncCommandListener (listener:ASyncCommandListener) : Boolean
- Removes the passed-in command listener object as listener
- fireCommandEndEvent : void
- Fires the onCommandEnd event to the listeners of this command.
Instance methods
addASyncCommandListener
Adds the passed-in command listener object as listener
for this command events.
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
receive notification from this command
rest :
optional arguments corresponding to the
EventBroadcaster.addEventListener() behavior.Returns:
-
trueif 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
Removes the passed-in command listener object as listener
for this command events.
for this command events.
Parameters:
listener:
the listener object which to remove from this
command's listeners
command's listeners
Returns:
-
trueif the listener have been removed as result
of the call
See also:
-
EventBroadcaster.addEventListener() documentation