|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.stripes.tag.StripesTagSupport
public abstract class StripesTagSupport
A very basic implementation of the Tag interface that is similar in manner to the standard TagSupport class, but with less clutter.
| Field Summary | |
|---|---|
protected PageContext |
pageContext
Storage for a PageContext during evaluation. |
protected Tag |
parentTag
Storage for the parent tag of this tag. |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
|---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Constructor Summary | |
|---|---|
StripesTagSupport()
|
|
| Method Summary | ||
|---|---|---|
abstract int |
doEndTag()
Abstract method from the Tag interface. |
|
abstract int |
doStartTag()
Abstract method from the Tag interface. |
|
PageContext |
getPageContext()
Retrieves the pageContext handed to the tag by the container. |
|
Tag |
getParent()
From the Tag interface - allows fetching the parent tag on the JSP. |
|
protected
|
getParentTag(Class<T> tagType)
Locates the enclosing tag of the type supplied. |
|
void |
release()
No-op implementation of release(). |
|
void |
setPageContext(PageContext pageContext)
Called by the Servlet container to set the page context on the tag. |
|
void |
setParent(Tag tag)
From the Tag interface - allows the container to set the parent tag on the JSP. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected PageContext pageContext
protected Tag parentTag
| Constructor Detail |
|---|
public StripesTagSupport()
| Method Detail |
|---|
public void setPageContext(PageContext pageContext)
setPageContext in interface Tagpublic PageContext getPageContext()
public void setParent(Tag tag)
setParent in interface Tagpublic Tag getParent()
getParent in interface Tag
public abstract int doStartTag()
throws JspException
doStartTag in interface TagJspException
public abstract int doEndTag()
throws JspException
doEndTag in interface TagJspExceptionpublic void release()
release in interface Tagprotected <T extends Tag> T getParentTag(Class<T> tagType)
Locates the enclosing tag of the type supplied. If no enclosing tag of the type supplied can be found anywhere in the ancestry of this tag, null is returned..
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||