| Package | net.systemeD.halcyon.connection |
| Class | public class CompositeUndoableAction |
| Inheritance | CompositeUndoableAction UndoableAction |
| Subclasses | BeginWayAction, CreatePOIAction, JoinNodeAction, MergeNodesAction, MergeWaysAction, MoveWayAction, ReplaceNodeAction, SplitWayAction, UnjoinNodeAction |
| Property | Defined by | ||
|---|---|---|---|
| name : String | CompositeUndoableAction | ||
| Method | Defined by | ||
|---|---|---|---|
|
CompositeUndoableAction(name:String)
| CompositeUndoableAction | ||
|
clearActions():void
Clear the list of actions
| CompositeUndoableAction | ||
|
doAction():uint
Do all the actions on the list.
| CompositeUndoableAction | ||
![]() |
mergePrevious(previous:UndoableAction):Boolean
Can this action be merged with the previous action? This is sometimes wanted, such as
when moving nodes around.
| UndoableAction | |
|
push(action:UndoableAction):void
Add an action to the list of actions that make up this CompositeUndoableAction
| CompositeUndoableAction | ||
|
toString():String
Returns the name of this composite action, along with the (recursive) description of all the sub actions
| CompositeUndoableAction | ||
|
undoAction():uint
Undo the actions on the list.
| CompositeUndoableAction | ||
|
undoFrom(index:int):void
Undo the actions from a given index.
| CompositeUndoableAction | ||
| name | property |
public var name:String
| CompositeUndoableAction | () | constructor |
public function CompositeUndoableAction(name:String)Parameters
name:String — The name you want to give to this CompositeUndoableAction - useful for debugging
|
| clearActions | () | method |
public function clearActions():voidClear the list of actions
| doAction | () | method |
public override function doAction():uintDo all the actions on the list. Can be overridden by an specific implementation, usually to manage the suspending and resuming of entities. If so, you'll want to call super.doAction from that implementation to actually execute the list of actions that you've added via push If any action fails while exectuing, the preceeding actions will be undone and this composite will return FAIL
Returnsuint — whether the entire stack of actions succeeded, failed or resulted in nothing changing.
|
See also
| push | () | method |
public function push(action:UndoableAction):voidAdd an action to the list of actions that make up this CompositeUndoableAction
Parametersaction:UndoableAction |
| toString | () | method |
public function toString():StringReturns the name of this composite action, along with the (recursive) description of all the sub actions
ReturnsString |
| undoAction | () | method |
public override function undoAction():uintUndo the actions on the list. If overridden call super.undoAction
Returnsuint |
| undoFrom | () | method |
public function undoFrom(index:int):voidUndo the actions from a given index. Used when the composite needs to be aborted when one of the individual actions fails
Parametersindex:int |