|
||||||||||
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. |
|
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
|
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. |
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 Tag
public PageContext getPageContext()
public void setParent(Tag tag)
setParent
in interface Tag
public Tag getParent()
getParent
in interface Tag
public abstract int doStartTag() throws JspException
doStartTag
in interface Tag
JspException
public abstract int doEndTag() throws JspException
doEndTag
in interface Tag
JspException
public void release()
release
in interface Tag
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 object
protected 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |