org.dbforms.taglib
Class StaticDataTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.dbforms.taglib.AbstractScriptHandlerTag
              extended by org.dbforms.taglib.StaticDataTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally, IStaticDataList

public class StaticDataTag
extends AbstractScriptHandlerTag
implements javax.servlet.jsp.tagext.TryCatchFinally, IStaticDataList

DOCUMENT ME!

Version:
$Revision: 1.2 $
Author:
$author$
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
StaticDataTag()
           
 
Method Summary
 void addElement(StaticData pair)
          DOCUMENT ME!
 int doAfterBody()
          DOCUMENT ME!
 int doEndTag()
          DOCUMENT ME!
 void doFinally()
          DOCUMENT ME!
 int doStartTag()
          DOCUMENT ME!
protected  Collection fetchData(Connection con)
          for use from parent element [radio, select, etc.]
 String getName()
          returns the unique name of the embedded data
 void setName(String name)
          set the name of the embedded data. every embedded data entity on a jsp page has to have a unique name. this name is used for storing (caching) and retrieving data in Page-Scope. this is useful if a tag gets evaluated many times -> we do not the tag get parsed more than once #fixme: encode name in order to avoid naming conficts!
 
Methods inherited from class org.dbforms.taglib.AbstractScriptHandlerTag
doCatch, getAccessKey, getConfig, getOnBlur, getOnChange, getOnClick, getOnDblClick, getOnFocus, getOnKeyDown, getOnKeyPress, getOnKeyUp, getOnMouseDown, getOnMouseMove, getOnMouseOut, getOnMouseOver, getOnMouseUp, getOnSelect, getStyle, getStyleClass, getTabIndex, getTitle, prepareEventHandlers, prepareStyles, setAccessKey, setOnBlur, setOnChange, setOnClick, setOnDblClick, setOnFocus, setOnKeyDown, setOnKeyPress, setOnKeyUp, setOnMouseDown, setOnMouseMove, setOnMouseOut, setOnMouseOver, setOnMouseUp, setOnSelect, setStyle, setStyleClass, setTabIndex, setTitle
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.TryCatchFinally
doCatch
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

StaticDataTag

public StaticDataTag()
Method Detail

setName

public void setName(String name)
set the name of the embedded data. every embedded data entity on a jsp page has to have a unique name. this name is used for storing (caching) and retrieving data in Page-Scope. this is useful if a tag gets evaluated many times -> we do not the tag get parsed more than once #fixme: encode name in order to avoid naming conficts!

Parameters:
name - DOCUMENT ME!

getName

public String getName()
returns the unique name of the embedded data

Returns:
DOCUMENT ME!

addElement

public void addElement(StaticData pair)
DOCUMENT ME!

Specified by:
addElement in interface IStaticDataList
Parameters:
pair - DOCUMENT ME!

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspException
DOCUMENT ME!

Specified by:
doAfterBody in interface javax.servlet.jsp.tagext.IterationTag
Overrides:
doAfterBody in class javax.servlet.jsp.tagext.BodyTagSupport
Returns:
DOCUMENT ME!
Throws:
javax.servlet.jsp.JspException - DOCUMENT ME!

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
DOCUMENT ME!

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.BodyTagSupport
Returns:
DOCUMENT ME!
Throws:
javax.servlet.jsp.JspException - DOCUMENT ME!

doFinally

public void doFinally()
DOCUMENT ME!

Specified by:
doFinally in interface javax.servlet.jsp.tagext.TryCatchFinally
Overrides:
doFinally in class AbstractScriptHandlerTag
See Also:
TryCatchFinally.doFinally()

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
DOCUMENT ME!

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
Returns:
DOCUMENT ME!
Throws:
javax.servlet.jsp.JspException - DOCUMENT ME!

fetchData

protected Collection fetchData(Connection con)
for use from parent element [radio, select, etc.]

Parameters:
con - DOCUMENT ME!
Returns:
DOCUMENT ME!


Copyright © 2002-2006 DbForms. All Rights Reserved.