Packageorg.spicefactory.lib.command
Interfacepublic interface SuspendableCommand extends CancellableCommand, AsyncCommand, Command, flash.events.IEventDispatcher
Implementors AbstractSuspendableCommand

Represents a command that can get cancelled and suspended.



Public Properties
 PropertyDefined By
 Inheritedactive : Boolean
[read-only] Indicates whether this command is currently executing.
AsyncCommand
  suspended : Boolean
[read-only] Indicates whether this command is currently suspended.
SuspendableCommand
Public Methods
 MethodDefined By
 Inherited
cancel():void
Cancels the command.
CancellableCommand
 Inherited
execute():void
Executes the command.
Command
  
resume():void
Resumes the command.
SuspendableCommand
  
suspend():void
Suspends the command.
SuspendableCommand
Events
 Event Summary Defined By
  Dispatched when the command is resumed.SuspendableCommand
  Dispatched when the command is suspended.SuspendableCommand
Property Detail
suspendedproperty
suspended:Boolean  [read-only]

Indicates whether this command is currently suspended.


Implementation
    public function get suspended():Boolean
Method Detail
resume()method
public function resume():void

Resumes the command. Calling this method only has an effect if the command is currently suspended.

suspend()method 
public function suspend():void

Suspends the command. Calling this method only has an effect if the command is currently executing.

Event Detail
resume Event
Event Object Type: org.spicefactory.lib.command.events.CommandEvent

Dispatched when the command is resumed.

suspend Event  
Event Object Type: org.spicefactory.lib.command.events.CommandEvent

Dispatched when the command is suspended.