|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.waffle.taglib.internal.BasicTag
public abstract class BasicTag
A basic tag. This class has been created in order to be extended.
| Field Summary | |
|---|---|
protected javax.servlet.jsp.PageContext |
pageContext
|
| Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
|---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
| 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 | |
|---|---|
BasicTag()
|
|
| Method Summary | ||
|---|---|---|
protected IterationResult |
afterBody(javax.servlet.jsp.JspWriter out)
To be implemented by child classes that want to do something after the body. |
|
protected void |
beforeBody(java.io.Writer out)
Executes something before body evaluation. |
|
int |
doAfterBody()
|
|
int |
doEndTag()
|
|
void |
doInitBody()
|
|
int |
doStartTag()
|
|
protected void |
end(java.io.Writer out)
Ends this tag. |
|
protected java.lang.String |
evaluate(java.lang.String expression)
Evaluates some expression. |
|
protected java.lang.String |
evaluateEl(java.lang.String expression)
Evaluates this expression in EL. |
|
protected
|
findAncestor(java.lang.Class<T> type)
Searchs a parent tag that implements the selected type. |
|
java.lang.String |
getAbsoluteUrl(java.lang.String url)
Fixes the absolute urls appending the context name. |
|
java.lang.String |
getI18NMessage(java.lang.String key)
Returns the i18n message for some key |
|
javax.servlet.jsp.tagext.Tag |
getParent()
|
|
boolean |
isRendered()
|
|
void |
release()
|
|
void |
setBodyContent(javax.servlet.jsp.tagext.BodyContent bodyContent)
|
|
void |
setPageContext(javax.servlet.jsp.PageContext pageContext)
|
|
void |
setParent(javax.servlet.jsp.tagext.Tag parent)
|
|
void |
setRendered(boolean rendered)
|
|
protected abstract IterationResult |
start(java.io.Writer out)
Starts this tag once. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.servlet.jsp.PageContext pageContext
| Constructor Detail |
|---|
public BasicTag()
| Method Detail |
|---|
protected <T> T findAncestor(java.lang.Class<T> type)
T - the type to searchtype - the class type to search
public javax.servlet.jsp.tagext.Tag getParent()
getParent in interface javax.servlet.jsp.tagext.Tagpublic void setRendered(boolean rendered)
public void release()
release in interface javax.servlet.jsp.tagext.Tagpublic void setPageContext(javax.servlet.jsp.PageContext pageContext)
setPageContext in interface javax.servlet.jsp.tagext.Tagpublic void setParent(javax.servlet.jsp.tagext.Tag parent)
setParent in interface javax.servlet.jsp.tagext.Tagpublic java.lang.String getI18NMessage(java.lang.String key)
key - the key to search for
public java.lang.String getAbsoluteUrl(java.lang.String url)
url - the original url
protected java.lang.String evaluate(java.lang.String expression)
throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
protected java.lang.String evaluateEl(java.lang.String expression)
throws javax.servlet.jsp.JspException
expression - expression in EL.
javax.servlet.jsp.JspExceptionpublic void setBodyContent(javax.servlet.jsp.tagext.BodyContent bodyContent)
setBodyContent in interface javax.servlet.jsp.tagext.BodyTag
public void doInitBody()
throws javax.servlet.jsp.JspException
doInitBody in interface javax.servlet.jsp.tagext.BodyTagjavax.servlet.jsp.JspException
public int doAfterBody()
throws javax.servlet.jsp.JspException
doAfterBody in interface javax.servlet.jsp.tagext.IterationTagjavax.servlet.jsp.JspException
protected IterationResult afterBody(javax.servlet.jsp.JspWriter out)
throws java.io.IOException
out - the writer
java.io.IOException
public int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.Tagjavax.servlet.jsp.JspException
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.Tagjavax.servlet.jsp.JspException
protected abstract IterationResult start(java.io.Writer out)
throws javax.servlet.jsp.JspException,
java.io.IOException
javax.servlet.jsp.JspException
java.io.IOException
protected void beforeBody(java.io.Writer out)
throws javax.servlet.jsp.JspException,
java.io.IOException
javax.servlet.jsp.JspException
java.io.IOException
protected void end(java.io.Writer out)
throws javax.servlet.jsp.JspException,
java.io.IOException
javax.servlet.jsp.JspException
java.io.IOExceptionpublic boolean isRendered()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||