TWE 2.4-1 API

org.enhydra.jawe
Class UndoHistoryMgr

java.lang.Object
  extended byorg.enhydra.jawe.UndoHistoryMgr
All Implemented Interfaces:
UndoHistoryManager

public class UndoHistoryMgr
extends java.lang.Object
implements UndoHistoryManager

Used to handle undo history.

Author:
Sasa Bojanic

Field Summary
protected  JaWEController jc
           
protected  int maxHistory
           
protected  java.util.Stack redoHistory
           
protected  java.util.Stack undoHistory
           
protected  boolean undoOrRedoInProgress
           
 
Constructor Summary
UndoHistoryMgr()
           
 
Method Summary
 boolean canRedo()
           
 boolean canUndo()
           
protected  boolean changeModel(XPDLElementChangeInfo info)
           
 void cleanHistory()
           
protected  java.util.List convertList(java.util.List lst)
           
 void init(int pMaxHistory)
           
 boolean isUndoOrRedoInProgress()
           
protected  void printGH(java.lang.String info)
           
 void redo()
           
 void registerEvents(java.util.List xpdlInfoList, XPDLElementChangeInfo selEv)
           
 void undo()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

undoHistory

protected java.util.Stack undoHistory

redoHistory

protected java.util.Stack redoHistory

maxHistory

protected int maxHistory

jc

protected JaWEController jc

undoOrRedoInProgress

protected boolean undoOrRedoInProgress
Constructor Detail

UndoHistoryMgr

public UndoHistoryMgr()
Method Detail

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)

TWE 2.4-1 API