|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
org.meshcms.taglib.AbstractTag
This class works as a base for all tags of the MeshCMS custom tags library.
| Field Summary | |
static java.lang.String |
PAGE_MODULES
Name of the page context attribute that stores the descriptions of the modules contained in a page. |
static java.util.regex.Pattern |
PARAM_REGEX
|
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
| Fields inherited from interface com.opensymphony.module.sitemesh.RequestConstants |
DECORATOR, FILTER_APPLIED, PAGE, ROBOT, USING_STREAM |
| 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 | |
AbstractTag()
|
|
| Method Summary | |
int |
doStartTag()
Initializes some variables, then executes writeTag() if the
page is being viewed or writeEditTag() if it is being edited. |
java.lang.String |
getHead()
|
java.lang.String |
getMailFormAddress()
|
protected java.io.Writer |
getOut()
Copied from com.opensymphony.module.sitemesh.taglib.AbstactTag for compatibility with SiteMesh |
protected com.opensymphony.module.sitemesh.Page |
getPage()
Copied from com.opensymphony.module.sitemesh.taglib.AbstactTag for compatibility with SiteMesh |
int |
getStartTagReturnValue()
Defines the return value of doStartTag(). |
void |
writeEditTag()
Writes the contents of the tag when the page is being edited. |
abstract void |
writeTag()
Writes the contents of the tag. |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String PAGE_MODULES
public static final java.util.regex.Pattern PARAM_REGEX
| Constructor Detail |
public AbstractTag()
| Method Detail |
public int doStartTag()
throws javax.servlet.jsp.JspException
writeTag() if the
page is being viewed or writeEditTag() if it is being edited.
doStartTag in interface javax.servlet.jsp.tagext.TaggetStartTagReturnValue()
javax.servlet.jsp.JspExceptionpublic int getStartTagReturnValue()
doStartTag(). This method can be
overridden by subclasses to change that value. The default implementation
returns SKIP_BODY.
doStartTag()
public abstract void writeTag()
throws java.io.IOException,
javax.servlet.jsp.JspException
java.io.IOException
javax.servlet.jsp.JspException
public void writeEditTag()
throws java.io.IOException,
javax.servlet.jsp.JspException
writeTag(). Subclasses can override it
when they behave differently while editing.
java.io.IOException
javax.servlet.jsp.JspExceptionprotected com.opensymphony.module.sitemesh.Page getPage()
protected java.io.Writer getOut()
public java.lang.String getHead()
public java.lang.String getMailFormAddress()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||