org.apache.beehive.netui.tags.databinding.repeater
Class RepeaterComponent

Object
  extended by TagSupport
      extended by BodyTagSupport
          extended by AbstractClassicTag
              extended by StructuredBaseTag
                  extended by RepeaterComponent
All Implemented Interfaces:
Serializable, BodyTag, IterationTag, JspTag, Tag, INetuiTag
Direct Known Subclasses:
Pad, RepeaterFooter, RepeaterHeader, RepeaterItem

public abstract class RepeaterComponent
extends StructuredBaseTag

The base class for tags that are part of the Repeater tag set and participate in the structured nature of Repeater rendering. This class provides typed access to the Repeater tag and enforces the basic JSP tag parenting requirements of tags that can only be nested within the Repeater tag.

See Also:
StructuredBaseTag, Serialized Form

Field Summary
 
Fields inherited from class StructuredBaseTag
EMPTY_STRING
 
Fields inherited from class AbstractClassicTag
DefaultNamingChain, NETUI_UNIQUE_CNT
 
Fields inherited from class BodyTagSupport
bodyContent
 
Fields inherited from class TagSupport
id, pageContext
 
Fields inherited from interface BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields inherited from interface IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
RepeaterComponent()
           
 
Method Summary
 int doAfterBody()
          Default implementation of this JSP lifecycle method.
protected  int getCurrentRenderState()
          Get the render state of the nearest structured tag.
protected  Repeater getRepeater()
          Get the Repeater parent of this tag.
protected  Class getValidContainerType()
          Default implementation of StructuredBaseTag.getValidContainerType() that enforces that the parent of this tag is the Repeater tag.
protected  void localRelease()
          Reset all of the fields of this tag.
protected  void prepare()
          Prepare data that is provided to subclasses of this tag.
protected  int renderEndTag(int state)
          Default implementation of StructuredBaseTag.renderEndTag(int).
 
Methods inherited from class StructuredBaseTag
addContent, doEndTag, doStartTag, getContent, renderStartTag, verifyAttributes
 
Methods inherited from class AbstractClassicTag
addTagIdMapping, applyNamingChain, getErrorsReport, getNamingChain, getNextId, getScriptReporter, getTagName, getUserLocale, hasErrors, qualifyAttribute, registerTagError, registerTagError, renderAttribute, reportAndExit, reportErrors, rewriteName, setNonEmptyValueAttribute, setRequiredValueAttribute, write
 
Methods inherited from class BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface Tag
getParent, setPageContext, setParent
 

Constructor Detail

RepeaterComponent

public RepeaterComponent()
Method Detail

doAfterBody

public int doAfterBody()
                throws JspException
Default implementation of this JSP lifecycle method.

Specified by:
doAfterBody in interface IterationTag
Overrides:
doAfterBody in class BodyTagSupport
Returns:
SKIP_BODY
Throws:
JspException

localRelease

protected void localRelease()
Reset all of the fields of this tag.

Overrides:
localRelease in class StructuredBaseTag

renderEndTag

protected int renderEndTag(int state)
                    throws JspException
Default implementation of StructuredBaseTag.renderEndTag(int). This returns EVAL_PAGE.

Specified by:
renderEndTag in class StructuredBaseTag
Parameters:
state - the current render state of the Repeater
Returns:
EVAL_PAGE
Throws:
JspException - if an error occurs that can not be reported in the page

getRepeater

protected final Repeater getRepeater()
Get the Repeater parent of this tag.

Returns:
the Repeater parent of this tag

prepare

protected void prepare()
Prepare data that is provided to subclasses of this tag.

Overrides:
prepare in class StructuredBaseTag

getValidContainerType

protected Class getValidContainerType()
Default implementation of StructuredBaseTag.getValidContainerType() that enforces that the parent of this tag is the Repeater tag. Subclasses may override this method to further specialize the required container type.

Specified by:
getValidContainerType in class StructuredBaseTag
Returns:
the valid container type of a RepeaterComponent; the Repeater.class

getCurrentRenderState

protected int getCurrentRenderState()
Get the render state of the nearest structured tag. For subclasses of this tag, the nearest structured tag is the Repeater tag.

Specified by:
getCurrentRenderState in class StructuredBaseTag
Returns:
the current render state of the Repeater