Together Workflow Editor 3.0-1 API

org.enhydra.jawe
Class HistoryMgr

java.lang.Object
  extended by org.enhydra.jawe.HistoryMgr
All Implemented Interfaces:
HistoryManager

public class HistoryMgr
extends java.lang.Object
implements HistoryManager

Used to handle history.

Author:
Sasa Bojanic

Field Summary
protected  java.util.Stack backHistory
           
protected  java.util.Stack forwardHistory
           
protected  int maxHistory
           
 
Constructor Summary
HistoryMgr()
           
 
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
 

Field Detail

backHistory

protected java.util.Stack backHistory

forwardHistory

protected java.util.Stack forwardHistory

maxHistory

protected int maxHistory
Constructor Detail

HistoryMgr

public HistoryMgr()
Method Detail

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

Together Workflow Editor 3.0-1 API