Packageorg.robotlegs.utilities.undoablecommand
Classpublic class CommandEvent
InheritanceCommandEvent Inheritance flash.events.Event
Subclasses HistoryEvent

CommandEvents are fired when single commands finish executing, finish undoing or are cancelled.



Public Properties
 PropertyDefined By
  command : IUndoableCommand
The command associated with the event.
CommandEvent
Public Methods
 MethodDefined By
  
CommandEvent(type:String, command:IUndoableCommand)
CommandEvent
Public Constants
 ConstantDefined By
  CANCELLED : String = executeCancelled
[static] CommandEvent of this type will be fired when execution of a command was cancelled.
CommandEvent
  EXECUTE_COMPLETE : String = executeComplete
[static] CommandEvent of this type will be fired when a command has completed executing/redoing.
CommandEvent
  UNDO_EXECUTE_COMPLETE : String = undoExecuteComplete
[static] CommandEvent of this type will be fired when a command has completed undoing.
CommandEvent
Property Detail
commandproperty
public var command:IUndoableCommand

The command associated with the event.

Constructor Detail
CommandEvent()Constructor
public function CommandEvent(type:String, command:IUndoableCommand)

Parameters
type:String — The type of event
 
command:IUndoableCommand — The command associated with the event
Constant Detail
CANCELLEDConstant
public static const CANCELLED:String = executeCancelled

CommandEvent of this type will be fired when execution of a command was cancelled.

EXECUTE_COMPLETEConstant 
public static const EXECUTE_COMPLETE:String = executeComplete

CommandEvent of this type will be fired when a command has completed executing/redoing.

UNDO_EXECUTE_COMPLETEConstant 
public static const UNDO_EXECUTE_COMPLETE:String = undoExecuteComplete

CommandEvent of this type will be fired when a command has completed undoing.