org.dbforms.taglib
Class StaticData

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

public class StaticData
extends TagSupportWithScriptHandler
implements javax.servlet.jsp.tagext.TryCatchFinally, StaticDataAddInterface

DOCUMENT ME!

Version:
$Revision: 1.12 $
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
StaticData()
           
 
Method Summary
 void addElement(KeyValuePair pair)
          DOCUMENT ME!
 int doAfterBody()
          DOCUMENT ME!
 void doCatch(Throwable t)
          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.TagSupportWithScriptHandler
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.Tag
getParent, setPageContext, setParent
 

Constructor Detail

StaticData

public StaticData()
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(KeyValuePair pair)
DOCUMENT ME!

Specified by:
addElement in interface StaticDataAddInterface
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!

doCatch

public void doCatch(Throwable t)
             throws Throwable
DOCUMENT ME!

Specified by:
doCatch in interface javax.servlet.jsp.tagext.TryCatchFinally
Parameters:
t - DOCUMENT ME!
Throws:
Throwable - 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 TagSupportWithScriptHandler
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-2005 DbForms. All Rights Reserved.