| Package | net.systemeD.halcyon.connection |
| Class | public class UndoableAction |
| Subclasses | CompositeUndoableAction, UndoableEntityAction |
See also
| Method | Defined by | ||
|---|---|---|---|
|
doAction():uint
The doAction function is called when it is time to execute this action or
combination of actions.
| UndoableAction | ||
|
mergePrevious(previous:UndoableAction):Boolean
Can this action be merged with the previous action? This is sometimes wanted, such as
when moving nodes around.
| UndoableAction | ||
|
undoAction():uint
The undoAction function is called in order to undo this action or combination
of actions.
| UndoableAction | ||
| Constant | Defined by | ||
|---|---|---|---|
| FAIL : uint = 0 [static] Something went wrong while attempting the action
| UndoableAction | ||
| NO_CHANGE : uint = 2 [static] No entity was altered by this action
| UndoableAction | ||
| SUCCESS : uint = 1 [static] The action worked, and entities were changed
| UndoableAction | ||
| doAction | () | method |
public function doAction():uintThe doAction function is called when it is time to execute this action or combination of actions. It is usually triggered by either MainUndoStack.addAction or by MainUndoStack.redo. This should be overridden.
Returnsuint — whether the action succeed, failed or nothing happened
|
| mergePrevious | () | method |
public function mergePrevious(previous:UndoableAction):BooleanCan this action be merged with the previous action? This is sometimes wanted, such as when moving nodes around. This is overridden when needed.
Parametersprevious:UndoableAction |
Boolean |
See also
| undoAction | () | method |
public function undoAction():uintThe undoAction function is called in order to undo this action or combination of actions. It is usually triggered by MainUndoStack.undo. This should be overridden.
Returnsuint — whether undoing the action succeed, failed or nothing happened
|
| FAIL | constant |
public static const FAIL:uint = 0Something went wrong while attempting the action
| NO_CHANGE | constant |
public static const NO_CHANGE:uint = 2No entity was altered by this action
| SUCCESS | constant |
public static const SUCCESS:uint = 1The action worked, and entities were changed