com.arsdigita.bebop.jsp
Class ShowCellList

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended bycom.arsdigita.bebop.jsp.ShowComponent
              extended bycom.arsdigita.bebop.jsp.ShowContainer
                  extended bycom.arsdigita.bebop.jsp.ShowCellList
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, com.arsdigita.bebop.jsp.JSPConstants, Serializable, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
ShowList, ShowTableBody, ShowTableHeader, ShowTableRow

public abstract class ShowCellList
extends ShowContainer

JSP tag handler to show contents from a model-backed one-dimensional list of bebop:cells. Inside a table, this would represent a table row. Inside a list, this would just be the list itself.

See Also:
ShowTable, ShowList, Serialized Form

Field Summary
static String versionId
           
 
Fields inherited from class com.arsdigita.bebop.jsp.ShowComponent
BEBOP_XMLNS, INPUT_DOC_ATTRIBUTE, INPUT_PAGE_STATE_ATTRIBUTE, SLAVE_DOC, SLAVE_INPUT_DOC
 
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
ShowCellList()
           
 
Method Summary
 int doAfterBody()
          We call perform the same action (handleText) as our parent class's doAfterBody() handler, but we don't always return SKIP_BODY.
 int doStartTag()
          set up the input context as our parent class would except evaluate the body of the current show:...
 org.w3c.dom.Node getCurrentCell()
          returns the contents of current list cell.
protected abstract  org.w3c.dom.traversal.TreeWalker makeTreeWalker()
          Creates the tree walker to pick out the cells specific to this model-backed collection.
 
Methods inherited from class com.arsdigita.bebop.jsp.ShowContainer
doEndTag
 
Methods inherited from class com.arsdigita.bebop.jsp.ShowComponent
getName, setName
 
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
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

ShowCellList

public ShowCellList()
Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
set up the input context as our parent class would except evaluate the body of the current show:... tag only if the list in question isn't empty.

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class ShowContainer
Throws:
javax.servlet.jsp.JspException

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspException
We call perform the same action (handleText) as our parent class's doAfterBody() handler, but we don't always return SKIP_BODY. Instead, we keep returning EVAL_BODY_TAG for each element in the list until we're out of list elements.

Specified by:
doAfterBody in interface javax.servlet.jsp.tagext.IterationTag
Overrides:
doAfterBody in class ShowContainer
Throws:
javax.servlet.jsp.JspException

getCurrentCell

public org.w3c.dom.Node getCurrentCell()
returns the contents of current list cell. Example: given the list
 <bebop:thead>
   <bebop:cell>
      <bebop:label>...<bebop:label>
   </bebop:cell>
 </bebop:thead>
 
we'd return the bebop:label element.


makeTreeWalker

protected abstract org.w3c.dom.traversal.TreeWalker makeTreeWalker()
Creates the tree walker to pick out the cells specific to this model-backed collection.



Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC