org.shiftone.exq.tagext
Class AbstractCursorConditionTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.shiftone.exq.tagext.AbstractCursorConditionTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.BodyTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- Direct Known Subclasses:
- CursorIfHasNoRowsTag, CursorIfHasRowsTag
- public abstract class AbstractCursorConditionTag
- extends javax.servlet.jsp.tagext.BodyTagSupport
- implements javax.servlet.jsp.tagext.BodyTag
The class is the base class of tags that descide to display their body
or not based on the state of a cursor. For example, if a cursor has no
rows, then it is probably not necessary to produce the open/close table
tags at all.
- Author:
- Jeff Drost
- See Also:
CursorIfHasNoRowsTag
,
CursorIfHasRowsTag
,
Serialized Form
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
EVAL_BODY_TAG |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doEndTag, doInitBody, getBodyContent, getPreviousOut, setBodyContent |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
findAncestorWithClass, getParent, getValue, getValues, removeValue, 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.BodyTag |
doInitBody, setBodyContent |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
doEndTag, getParent, setPageContext, setParent |
AbstractCursorConditionTag
public AbstractCursorConditionTag()
release
public void release()
- Method release
- Specified by:
release
in interface javax.servlet.jsp.tagext.Tag
setId
public void setId(java.lang.String id)
- Method setId
- Parameters:
id
-
getId
public java.lang.String getId()
- Method getId
getCursor
public Cursor getCursor()
throws javax.servlet.jsp.JspException
- Method getCursor
- Throws:
javax.servlet.jsp.JspException
getShouldDisplayBody
public abstract boolean getShouldDisplayBody(Cursor cursor)
- Method getShouldDisplayBody
- Parameters:
cursor
-
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Method doStartTag
- Specified by:
doStartTag
in interface javax.servlet.jsp.tagext.Tag
- Throws:
javax.servlet.jsp.JspException
doAfterBody
public int doAfterBody()
throws javax.servlet.jsp.JspException
- Method doAfterBody
- Specified by:
doAfterBody
in interface javax.servlet.jsp.tagext.BodyTag
- Throws:
javax.servlet.jsp.JspException