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

Quick Search    Search Deep

org.apache.taglibs.rdc.dm
Class SimpleDirectedDialog  view SimpleDirectedDialog download SimpleDirectedDialog.java

java.lang.Object
  extended byorg.apache.taglibs.rdc.dm.DialogManagerImpl
      extended byorg.apache.taglibs.rdc.dm.SimpleDirectedDialog
All Implemented Interfaces:
org.apache.taglibs.rdc.core.DialogManager

public class SimpleDirectedDialog
extends DialogManagerImpl

Concrete implementation of the RDC helper tag group using a directed dialog.


Field Summary
 
Fields inherited from class org.apache.taglibs.rdc.dm.DialogManagerImpl
groupState, groupTag, stack, stateMap
 
Constructor Summary
SimpleDirectedDialog()
           
 
Method Summary
 void collect(javax.servlet.jsp.JspContext ctx, javax.servlet.jsp.tagext.JspFragment bodyFragment)
          Collect the required information from the user
private  void dialogManagerDD(org.apache.taglibs.rdc.core.GroupModel groupModel)
          This method does the directive dialog management and sets the state to begin if they are in dormant state
private  int getGroupState(org.apache.taglibs.rdc.core.GroupModel groupModel)
          Returns the group state based on state of its children One of these states will be returned GRP_SOME_CHILD_RUNNING -> either of the children are in the execution phase, if the children are not done they are in running state GRP_SOME_CHILD_DORMANT -> either of the children are in input state could be say "done->input->input" GRP_ALL_CHILDREN_DONE -> if the child list is empty or if all the children are done say "done->done->done"
 
Methods inherited from class org.apache.taglibs.rdc.dm.DialogManagerImpl
confirm, finish, initialize, setGroupTag, setPropertyChildren, setStateChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleDirectedDialog

public SimpleDirectedDialog()
Method Detail

collect

public void collect(javax.servlet.jsp.JspContext ctx,
                    javax.servlet.jsp.tagext.JspFragment bodyFragment)
             throws javax.servlet.jsp.JspException,
                    java.io.IOException
Collect the required information from the user

Specified by:
collect in interface org.apache.taglibs.rdc.core.DialogManager
Specified by:
collect in class DialogManagerImpl

dialogManagerDD

private void dialogManagerDD(org.apache.taglibs.rdc.core.GroupModel groupModel)
This method does the directive dialog management and sets the state to begin if they are in dormant state


getGroupState

private int getGroupState(org.apache.taglibs.rdc.core.GroupModel groupModel)
Returns the group state based on state of its children One of these states will be returned GRP_SOME_CHILD_RUNNING -> either of the children are in the execution phase, if the children are not done they are in running state GRP_SOME_CHILD_DORMANT -> either of the children are in input state could be say "done->input->input" GRP_ALL_CHILDREN_DONE -> if the child list is empty or if all the children are done say "done->done->done"