Packagenet.systemeD.halcyon.connection
Classpublic class MainUndoStack
InheritanceMainUndoStack Inheritance flash.events.EventDispatcher

The main undo stack controls which actions can be undone or redone from the current situation.

See also

All actions inherit from undoable action


Public Methods
 MethodDefined by
  
Performs the action, then puts it on the undo stack.
MainUndoStack
  
breakUndo():void
Call to kill the undo and redo stacks -- the user will not be able to undo anything they previously did after this is called.
MainUndoStack
  
canRedo():Boolean
MainUndoStack
  
canUndo():Boolean
MainUndoStack
  
[static]
MainUndoStack
  
MainUndoStack
  
MainUndoStack
  
redo():void
Takes the action most recently undone, does it, and adds it to the undo stack
MainUndoStack
  
removeLastIfAction(action:Class):void
MainUndoStack
  
undo():void
Undo the most recent action, and add it to the top of the redo stack
MainUndoStack
  
undoIfAction(action:Class):Boolean
Undo the most recent action, but only if it's a particular class
MainUndoStack
Method detail
addAction()method
public function addAction(action:UndoableAction):void

Performs the action, then puts it on the undo stack. If you want to delay execution don't put it on this stack -- find another one.

Parameters
action:UndoableAction
breakUndo()method 
public function breakUndo():void

Call to kill the undo and redo stacks -- the user will not be able to undo anything they previously did after this is called.

canRedo()method 
public function canRedo():Boolean

Returns
Boolean
canUndo()method 
public function canUndo():Boolean

Returns
Boolean
getGlobalStack()method 
public static function getGlobalStack():MainUndoStack

Returns
MainUndoStack
getRedoDescription()method 
public function getRedoDescription():String

Returns
String
getUndoDescription()method 
public function getUndoDescription():String

Returns
String
redo()method 
public function redo():void

Takes the action most recently undone, does it, and adds it to the undo stack

removeLastIfAction()method 
public function removeLastIfAction(action:Class):voidParameters
action:Class
undo()method 
public function undo():void

Undo the most recent action, and add it to the top of the redo stack

undoIfAction()method 
public function undoIfAction(action:Class):Boolean

Undo the most recent action, but only if it's a particular class

Parameters
action:Class — The class of the previous action, for testing

Returns
Boolean