| Package | net.systemeD.halcyon.connection |
| Class | public class MainUndoStack |
| Inheritance | MainUndoStack flash.events.EventDispatcher |
See also
| Method | Defined by | ||
|---|---|---|---|
|
addAction(action:UndoableAction):void
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 | ||
|
getRedoDescription():String
| MainUndoStack | ||
|
getUndoDescription():String
| 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 | ||
| addAction | () | method |
public function addAction(action:UndoableAction):voidPerforms 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.
Parametersaction:UndoableAction |
| breakUndo | () | method |
public function breakUndo():voidCall 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 |
| getRedoDescription | () | method |
public function getRedoDescription():String
Returns
String |
| getUndoDescription | () | method |
public function getUndoDescription():String
Returns
String |
| redo | () | method |
public function redo():voidTakes 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():voidUndo the most recent action, and add it to the top of the redo stack
| undoIfAction | () | method |
public function undoIfAction(action:Class):BooleanUndo the most recent action, but only if it's a particular class
Parametersaction:Class — The class of the previous action, for testing
|
Boolean |