Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.RuntimeCollective.webapps.bean
Class ScreenFlowState  view ScreenFlowState download ScreenFlowState.java

java.lang.Object
  extended bycom.RuntimeCollective.webapps.bean.ScreenFlowState

public class ScreenFlowState
extends java.lang.Object

A stack of local forwards for screens with a very simplistic workflow.
Note: This class is currently under development. Highest level of workflow is the initial screen, lowest level is the furthest traversible screen in the flow.


Nested Class Summary
private  class ScreenFlowState.ScreenObject
          An internal stack class, for no particular purpose at the moment.
 
Field Summary
private  java.lang.String cancelForward
           
private static int iFlowId
           
private  java.util.Stack iStack
           
private static int iStateId
           
static java.lang.String SESSION_KEY
           
 
Constructor Summary
ScreenFlowState()
           
 
Method Summary
 void addForward(java.lang.String forward)
          Add a forward to the stack.
 java.lang.String getCancelForward()
           
 int getFlowId()
          For future use
 java.lang.String getForward()
           
 void reset()
          Reset the states when you are at the highest level of workflow
 void setCancelForward(java.lang.String forward)
          Use this to set the name of a global forward to return to in the event of a cancel.
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SESSION_KEY

public static final java.lang.String SESSION_KEY

iStack

private java.util.Stack iStack

cancelForward

private java.lang.String cancelForward

iFlowId

private static int iFlowId

iStateId

private static int iStateId
Constructor Detail

ScreenFlowState

public ScreenFlowState()
Method Detail

getFlowId

public int getFlowId()
For future use


setCancelForward

public void setCancelForward(java.lang.String forward)
Use this to set the name of a global forward to return to in the event of a cancel. This has been developed for the situation in which the same page/action set is called from a number of different locations.


getCancelForward

public java.lang.String getCancelForward()

addForward

public void addForward(java.lang.String forward)
Add a forward to the stack.


getForward

public java.lang.String getForward()

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).


reset

public void reset()
Reset the states when you are at the highest level of workflow