org.enhydra.jawe
Class UndoHistoryMgr
java.lang.Object
org.enhydra.jawe.UndoHistoryMgr
- All Implemented Interfaces:
- UndoHistoryManager
public class UndoHistoryMgr
- extends java.lang.Object
- implements UndoHistoryManager
Used to handle undo history.
- Author:
- Sasa Bojanic
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
undoHistory
protected java.util.Stack undoHistory
redoHistory
protected java.util.Stack redoHistory
maxHistory
protected int maxHistory
jc
protected JaWEController jc
undoOrRedoInProgress
protected boolean undoOrRedoInProgress
UndoHistoryMgr
public UndoHistoryMgr()
init
public void init(int pMaxHistory)
- Specified by:
init
in interface UndoHistoryManager
registerEvents
public void registerEvents(java.util.List xpdlInfoList,
XPDLElementChangeInfo selEv)
- Specified by:
registerEvents
in interface UndoHistoryManager
undo
public void undo()
- Specified by:
undo
in interface UndoHistoryManager
redo
public void redo()
- Specified by:
redo
in interface UndoHistoryManager
canUndo
public boolean canUndo()
- Specified by:
canUndo
in interface UndoHistoryManager
canRedo
public boolean canRedo()
- Specified by:
canRedo
in interface UndoHistoryManager
isUndoOrRedoInProgress
public boolean isUndoOrRedoInProgress()
- Specified by:
isUndoOrRedoInProgress
in interface UndoHistoryManager
cleanHistory
public void cleanHistory()
- Specified by:
cleanHistory
in interface UndoHistoryManager
convertList
protected java.util.List convertList(java.util.List lst)
changeModel
protected boolean changeModel(XPDLElementChangeInfo info)
printGH
protected void printGH(java.lang.String info)