Package | com.yworks.support |
Class | public class DelegateUndoUnit |
Inheritance | DelegateUndoUnit AbstractUndoUnit Object |
IUndoUnit
interface that uses simple delegate functions
for the actual undo and redo operations.
Method | Defined By | ||
---|---|---|---|
DelegateUndoUnit(undoName:String, undoHandler:Function, redoHandler:Function, undoParam:Object = null, redoParam:Object = null)
Creates a new instance using the provided name and a undo and redo handler function
as well as the parameters to pass to the handler functions. | DelegateUndoUnit | ||
This implementation does nothing and returns false. | AbstractUndoUnit | ||
canRedo():Boolean
Determines whether this instance can currently redo its work. | AbstractUndoUnit | ||
canUndo():Boolean
Determines whether this instance can currently undo its work. | AbstractUndoUnit | ||
dispose():void
Frees all used resources. | AbstractUndoUnit | ||
redo():void
Redoes the change that is represented by this unit. | AbstractUndoUnit | ||
replaceUnit(unit:IUndoUnit):Boolean
This implementation does nothing and returns false. | AbstractUndoUnit | ||
undo():void
Undoes the change that is represented by this unit. | AbstractUndoUnit |
Method | Defined By | ||
---|---|---|---|
redoImpl():void [override]
Calls the redo delegate using the redo parameter. | DelegateUndoUnit | ||
undoImpl():void [override]
Calls the undo delegate using the undo parameter. | DelegateUndoUnit |
DelegateUndoUnit | () | Constructor |
public function DelegateUndoUnit(undoName:String, undoHandler:Function, redoHandler:Function, undoParam:Object = null, redoParam:Object = null)
Creates a new instance using the provided name and a undo and redo handler function as well as the parameters to pass to the handler functions.
ParametersundoName:String — The name of the undo unit.
| |
undoHandler:Function — The undo handler delegate.
| |
redoHandler:Function — The redo handler delegate.
| |
undoParam:Object (default = null ) — The undo parameter to pass to the delegate.
| |
redoParam:Object (default = null ) — The redo parameter to pass to the delegate.
|
redoImpl | () | method |
override protected function redoImpl():void
Calls the redo delegate using the redo parameter.
undoImpl | () | method |
override protected function undoImpl():void
Calls the undo delegate using the undo parameter.