org.apache.taglibs.rdc.dm
Class DialogManagerImpl

java.lang.Object
  extended by org.apache.taglibs.rdc.dm.DialogManagerImpl
All Implemented Interfaces:
DialogManager
Direct Known Subclasses:
RuleBasedDirectedDialog, SCXMLDialog, SimpleDirectedDialog

public abstract class DialogManagerImpl
extends java.lang.Object
implements DialogManager

Abstract base implementation of the RDC helper tag group.

Author:
Rahul Akolkar

Field Summary
protected  int groupState
           
protected  GroupTag groupTag
           
protected  java.util.Stack stack
           
protected  java.util.LinkedHashMap stateMap
           
 
Constructor Summary
DialogManagerImpl()
           
 
Method Summary
abstract  void collect(javax.servlet.jsp.JspContext ctx, javax.servlet.jsp.tagext.JspFragment bodyFragment)
          Collect the required information from the user
 void confirm()
          Confirm the collected information from the user Deprecated in DialogManager interface (since RDC 1.1)
 void finish(javax.servlet.jsp.JspContext ctx)
          Finish up this doTag() invocation
 boolean initialize(javax.servlet.jsp.JspContext ctx, javax.servlet.jsp.tagext.JspFragment bodyFragment)
          Initialiaze this doTag() invocation
 void setGroupTag(GroupTag groupTag)
          Set the GroupTag instance whose dialog is to be managed
protected  void setPropertyChildren(java.util.Map children, java.lang.String propertyName, java.lang.Object value)
          Sets property for all children to value
protected  void setStateChildren(java.util.Map children, int state)
          Set the state of the children
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stack

protected java.util.Stack stack

stateMap

protected java.util.LinkedHashMap stateMap

groupTag

protected GroupTag groupTag

groupState

protected int groupState
Constructor Detail

DialogManagerImpl

public DialogManagerImpl()
Method Detail

setGroupTag

public void setGroupTag(GroupTag groupTag)
Description copied from interface: DialogManager
Set the GroupTag instance whose dialog is to be managed

Specified by:
setGroupTag in interface DialogManager
Parameters:
groupTag - the group tag whose dialog is to be managed

initialize

public boolean initialize(javax.servlet.jsp.JspContext ctx,
                          javax.servlet.jsp.tagext.JspFragment bodyFragment)
                   throws javax.servlet.jsp.JspException,
                          java.io.IOException
Initialiaze this doTag() invocation

Specified by:
initialize in interface DialogManager
Parameters:
ctx - the JspContext
bodyFragment - The JspFragment indicating the body of this group
Throws:
javax.servlet.jsp.JspException
java.io.IOException

collect

public abstract 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 DialogManager
Parameters:
ctx - the JspContext
bodyFragment - The JspFragment indicating the body of this group
Throws:
javax.servlet.jsp.JspException
java.io.IOException

confirm

public void confirm()
Confirm the collected information from the user Deprecated in DialogManager interface (since RDC 1.1)

Specified by:
confirm in interface DialogManager

finish

public void finish(javax.servlet.jsp.JspContext ctx)
            throws javax.servlet.jsp.JspException,
                   java.io.IOException
Finish up this doTag() invocation

Specified by:
finish in interface DialogManager
Parameters:
ctx - the JspContext
Throws:
javax.servlet.jsp.JspException
java.io.IOException

setStateChildren

protected void setStateChildren(java.util.Map children,
                                int state)
Set the state of the children

Parameters:
children - Map
state - the new state for the children

setPropertyChildren

protected void setPropertyChildren(java.util.Map children,
                                   java.lang.String propertyName,
                                   java.lang.Object value)
Sets property for all children to value



Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.