|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.tonbeller.jpivot.tags.StackStateManager
public class StackStateManager
A Stack of states (name/value pairs). For every state name, there is only one value. States with different names are stacked, every name is on the stack only once. Example:
ps = new StackStateStrategy(); -- a1 is top of stack: ps.setCurrent("A", a1); -- replace a1 with a2: ps.setCurrent("A", a2); -- push b1 on the stack ps.setCurrent("B", b1); -- stack now contains a2, b1 -- push c1 on the stack ps.setCurrent("C", c1); -- pop c1 and b1 and make a3 top of stack ps.setCurrent("A", a3); -- stack contains a3 only
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.tonbeller.jpivot.tags.StateManager |
---|
StateManager.State |
Constructor Summary | |
---|---|
StackStateManager()
|
Method Summary | |
---|---|
void |
destroyAll()
removes all states |
void |
destroyByName(java.lang.String name)
pops and destroys all states up to and including the named one. |
StateLogger |
getLogger()
|
void |
initializeAndShow(StateManager.State s)
removes all properties from the stack |
void |
setLogger(StateLogger logger)
logger for debug/test |
void |
showByName(java.lang.String name)
pops and destroys all states up to but not including the named one. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StackStateManager()
Method Detail |
---|
public void initializeAndShow(StateManager.State s) throws java.lang.Exception
initializeAndShow
in interface StateManager
java.lang.Exception
public void showByName(java.lang.String name) throws java.lang.Exception
showByName
in interface StateManager
java.lang.Exception
destroyByName(java.lang.String)
public void destroyAll() throws java.lang.Exception
StateManager
destroyAll
in interface StateManager
java.lang.Exception
public void destroyByName(java.lang.String name) throws java.lang.Exception
destroyByName
in interface StateManager
java.lang.Exception
showByName(java.lang.String)
public StateLogger getLogger()
getLogger
in interface StateManager
public void setLogger(StateLogger logger)
StateManager
setLogger
in interface StateManager
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |