org.enhydra.jawe
Class HistoryMgr
java.lang.Object
org.enhydra.jawe.HistoryMgr
- All Implemented Interfaces:
- HistoryManager
- public class HistoryMgr
- extends java.lang.Object
- implements HistoryManager
Used to handle history.
- Author:
- Sasa Bojanic
Method Summary |
void |
addToHistory(org.enhydra.shark.xpdl.XMLElement current,
org.enhydra.shark.xpdl.XMLElement el)
|
boolean |
canGoBack()
|
boolean |
canGoForward()
|
void |
cleanHistory()
|
org.enhydra.shark.xpdl.XMLElement |
getNext(org.enhydra.shark.xpdl.XMLElement current)
|
org.enhydra.shark.xpdl.XMLElement |
getPrevious(org.enhydra.shark.xpdl.XMLElement current)
|
void |
init(int pMaxHistory)
|
void |
removeFromHistory(org.enhydra.shark.xpdl.XMLElement el)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
backHistory
protected java.util.Stack backHistory
forwardHistory
protected java.util.Stack forwardHistory
maxHistory
protected int maxHistory
HistoryMgr
public HistoryMgr()
init
public void init(int pMaxHistory)
- Specified by:
init
in interface HistoryManager
addToHistory
public void addToHistory(org.enhydra.shark.xpdl.XMLElement current,
org.enhydra.shark.xpdl.XMLElement el)
- Specified by:
addToHistory
in interface HistoryManager
removeFromHistory
public void removeFromHistory(org.enhydra.shark.xpdl.XMLElement el)
- Specified by:
removeFromHistory
in interface HistoryManager
getNext
public org.enhydra.shark.xpdl.XMLElement getNext(org.enhydra.shark.xpdl.XMLElement current)
- Specified by:
getNext
in interface HistoryManager
getPrevious
public org.enhydra.shark.xpdl.XMLElement getPrevious(org.enhydra.shark.xpdl.XMLElement current)
- Specified by:
getPrevious
in interface HistoryManager
canGoBack
public boolean canGoBack()
- Specified by:
canGoBack
in interface HistoryManager
canGoForward
public boolean canGoForward()
- Specified by:
canGoForward
in interface HistoryManager
cleanHistory
public void cleanHistory()
- Specified by:
cleanHistory
in interface HistoryManager