|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.mmbase.bridge.jsp.taglib.WriterHelper
Tags that are Writers can use the this class. It's a pitty that they can't extend, but that's life.
| Field Summary | |
static boolean |
IMPLICITLIST
|
static boolean |
NOIMPLICITLIST
|
| Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, 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 | |
WriterHelper(ContextReferrerTag tag)
|
|
| Method Summary | |
int |
doAfterBody()
Sets the bodycontent (to be used in doEndTag) |
int |
doEndTag()
A basic doEndTag for Writers. |
java.lang.String |
getEscape()
Gets specified escaper (as a string) or null (if not set) |
java.lang.String |
getJspvar()
|
protected java.io.Writer |
getPageString(java.io.Writer w)
Returns a string which can be written to the page. |
java.lang.String |
getString()
|
java.lang.Object |
getValue()
|
int |
getVartype()
|
Attribute |
getWrite()
|
void |
haveBody()
To be called by subtags. |
boolean |
isWrite()
|
void |
overrideWrite(boolean w)
There is a default behavior for what should happen if the 'write' attribute is not set. |
void |
release()
|
void |
setEscape(Attribute e)
For implementation of the escape attribute. |
void |
setJspvar(javax.servlet.jsp.PageContext p)
Deprecated. jspvar will be set by setValue then |
void |
setJspvar(java.lang.String j)
|
void |
setValue(java.lang.Object v)
Sets the vartype for this variable (used for jspvar as well as for taglib var). |
void |
setValue(java.lang.Object v,
boolean noImplicitList)
|
void |
setVartype(java.lang.String t)
|
void |
setWrite(Attribute w)
For implementation of the write attribute. |
void |
setWrite(java.lang.Boolean b)
Deprecated. Use setWrite(Attribute) |
void |
useEscaper(boolean ue)
Some writer tags produce very specific content, and take care of escaping themselves (UrlTag). |
| Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doInitBody, doStartTag, getBodyContent, getPreviousOut, setBodyContent |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setPageContext, setParent |
| Field Detail |
public static boolean NOIMPLICITLIST
public static boolean IMPLICITLIST
| Constructor Detail |
public WriterHelper(ContextReferrerTag tag)
| Method Detail |
public void setWrite(Attribute w)
public Attribute getWrite()
public void setEscape(Attribute e)
public java.lang.String getEscape()
throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionpublic void setWrite(java.lang.Boolean b)
public void overrideWrite(boolean w)
public void useEscaper(boolean ue)
public boolean isWrite()
throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionpublic void setJspvar(java.lang.String j)
public void setJspvar(javax.servlet.jsp.PageContext p)
throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionpublic java.lang.String getJspvar()
public void setValue(java.lang.Object v)
throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagException
public void setValue(java.lang.Object v,
boolean noImplicitList)
throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionpublic java.lang.Object getValue()
public void setVartype(java.lang.String t)
throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionpublic int getVartype()
protected java.io.Writer getPageString(java.io.Writer w)
throws javax.servlet.jsp.JspTagException,
java.io.IOException
javax.servlet.jsp.JspTagException
java.io.IOExceptionpublic void haveBody()
public java.lang.String getString()
public int doAfterBody()
throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
public int doEndTag()
throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionpublic void release()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||