org.mmbase.bridge.jsp.taglib
Class WriterHelper
java.lang.Object
|
+--org.mmbase.bridge.jsp.taglib.WriterHelper
- public class WriterHelper
- extends java.lang.Object
Tags that are Writers can use the this class. It's a pitty that
they can't extend, but that's life.
- Author:
- Michiel Meeuwissen
|
Method Summary |
int |
doEndTag()
A basic doEndTag for Writers. |
java.lang.String |
getJspvar()
|
protected java.lang.String |
getPageString()
Returns a string which can be written to the page. |
java.lang.String |
getString()
|
java.lang.Object |
getValue()
|
int |
getVartype()
|
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 |
setBodyContent(javax.servlet.jsp.tagext.BodyContent b)
|
void |
setJspvar()
Don't forget to call 'setValue' first! |
void |
setJspvar(javax.servlet.jsp.PageContext p)
|
void |
setJspvar(java.lang.String j)
|
void |
setPageContext(javax.servlet.jsp.PageContext p)
|
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(java.lang.Boolean w)
For implementation of the write attribute. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NOIMPLICITLIST
public static boolean NOIMPLICITLIST
IMPLICITLIST
public static boolean IMPLICITLIST
WriterHelper
public WriterHelper()
setWrite
public void setWrite(java.lang.Boolean w)
- For implementation of the write attribute.
overrideWrite
public void overrideWrite(boolean w)
- There is a default behavior for what should happen if the 'write' attribute is not set.
if you want to override this, then call this function.
isWrite
public boolean isWrite()
setJspvar
public void setJspvar(java.lang.String j)
getJspvar
public java.lang.String getJspvar()
setValue
public void setValue(java.lang.Object v)
throws javax.servlet.jsp.JspTagException
- Sets the vartype for this variable (used for jspvar as well as for taglib var).
Some 'casting' functionality is present here.
setValue
public void setValue(java.lang.Object v,
boolean noImplicitList)
throws javax.servlet.jsp.JspTagException
setBodyContent
public void setBodyContent(javax.servlet.jsp.tagext.BodyContent b)
setPageContext
public void setPageContext(javax.servlet.jsp.PageContext p)
getValue
public java.lang.Object getValue()
setJspvar
public void setJspvar(javax.servlet.jsp.PageContext p)
throws javax.servlet.jsp.JspTagException
setJspvar
public void setJspvar()
throws javax.servlet.jsp.JspTagException
- Don't forget to call 'setValue' first!
setVartype
public void setVartype(java.lang.String t)
throws javax.servlet.jsp.JspTagException
getVartype
public int getVartype()
getPageString
protected java.lang.String getPageString()
throws javax.servlet.jsp.JspTagException
- Returns a string which can be written to the page.
haveBody
public void haveBody()
- To be called by subtags. Even if they don't produce output,
they say that the tag had a body.
getString
public java.lang.String getString()
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspTagException
- A basic doEndTag for Writers.
It decides if to write or not.
release
public void release()
MMBase build 1.6.5.20030923