public abstract class StripesTagSupport extends Object implements Tag
| Modifier and Type | Field and Description |
|---|---|
protected PageContext |
pageContext
Storage for a PageContext during evaluation.
|
protected Tag |
parentTag
Storage for the parent tag of this tag.
|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE| Constructor and Description |
|---|
StripesTagSupport() |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
doEndTag()
Abstract method from the Tag interface.
|
abstract int |
doStartTag()
Abstract method from the Tag interface.
|
protected Class<? extends ActionBean> |
getActionBeanType(Object nameOrClass)
Helper method that takes an attribute which may be either a String class name
or a Class object and returns the Class representing the appropriate ActionBean.
|
protected String |
getActionBeanUrl(Object nameOrClass)
Similar to the
getActionBeanType(Object) method except that instead of
returning the Class of ActionBean it returns the URL Binding of the ActionBean. |
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 <T extends Tag> |
getParentTag(Class<T> tagType)
Locates the enclosing tag of the type supplied.
|
protected Stack<StripesTagSupport> |
getTagStack()
Fetches a tag stack that is stored in the request.
|
void |
popPageContextAttributes()
Attempts to restore page context attributes to their state prior to a call to
pushPageContextAttributes().
|
void |
pushPageContextAttributes(Map<String,Object> attributes)
Pushes new values for the attributes supplied into the page context, preserving
the old values so that they can be put back into page context end of the tag's
execution (usually in doEndTag).
|
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.
|
protected PageContext pageContext
protected Tag parentTag
public void setPageContext(PageContext pageContext)
setPageContext in interface Tagpublic PageContext getPageContext()
public void setParent(Tag tag)
public Tag getParent()
public abstract int doStartTag()
throws JspException
doStartTag in interface TagJspExceptionpublic abstract int doEndTag()
throws JspException
doEndTag in interface TagJspExceptionpublic void release()
public void pushPageContextAttributes(Map<String,Object> attributes)
popPageContextAttributes().public void popPageContextAttributes()
protected <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.
protected Stack<StripesTagSupport> getTagStack()
protected Class<? extends ActionBean> getActionBeanType(Object nameOrClass)
nameOrClass - either the String FQN of an ActionBean class, or a Class objectprotected String getActionBeanUrl(Object nameOrClass)
getActionBeanType(Object) method except that instead of
returning the Class of ActionBean it returns the URL Binding of the ActionBean.nameOrClass - either the String FQN of an ActionBean class, or a Class object© Copyright 2005-2006, Stripes Development Team.