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

Quick Search    Search Deep

Class ScreenFlowState  view ScreenFlowState download

  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
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


public static final java.lang.String SESSION_KEY


private java.util.Stack iStack


private java.lang.String cancelForward


private static int iFlowId


private static int iStateId
Constructor Detail


public ScreenFlowState()
Method Detail


public int getFlowId()
For future use


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.


public java.lang.String getCancelForward()


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


public java.lang.String getForward()


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()).


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