|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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
|
static String |
STACK_ATTRIBUTE
|
static int |
TYPE_STRING
|
| Constructor Summary | |
WriterHelper(ContextReferrerTag tag)
|
|
| Method Summary | |
int |
doAfterBody()
|
int |
doEndTag()
A basic doEndTag for Writers. |
String |
getEscape()
Gets specified escaper (as a string) or null (if not set) |
CharTransformer |
getEscaper()
|
String |
getJspvar()
|
protected Writer |
getPageString(Writer w)
Returns a string which can be written to the page. |
String |
getString()
|
Object |
getValue()
|
int |
getVartype()
|
Attribute |
getWrite()
|
void |
haveBody()
To be called by subtags. |
boolean |
isWrite()
|
void |
overrideNoImplicitList()
|
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(PageContext p)
Deprecated. jspvar will be set by setValue then |
void |
setJspvar(String j)
|
void |
setListdelimiter(Attribute l)
|
void |
setValue(Object v)
Sets the vartype for this variable (used for jspvar as well as for taglib var). |
void |
setValue(Object v,
boolean noImplicitList)
|
void |
setValueOnly(Object v,
boolean noImplicitList)
Sets only the value in the helper, withouth setting the _Stack |
void |
setVartype(String t)
|
void |
setWrite(Attribute w)
For implementation of the write attribute. |
void |
setWrite(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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final boolean NOIMPLICITLIST
public static final boolean IMPLICITLIST
public static final String STACK_ATTRIBUTE
public static final int TYPE_STRING
| Constructor Detail |
public WriterHelper(ContextReferrerTag tag)
| Method Detail |
public void setWrite(Attribute w)
public Attribute getWrite()
public void setEscape(Attribute e)
public void setWrite(Boolean b)
public void overrideNoImplicitList()
public void overrideWrite(boolean w)
public void useEscaper(boolean ue)
public boolean isWrite()
throws JspTagException
JspTagExceptionpublic void setJspvar(String j)
public void setJspvar(PageContext p)
throws JspTagException
JspTagExceptionpublic String getJspvar()
public void setValue(Object v)
throws JspTagException
JspTagException
public String getEscape()
throws JspTagException
JspTagException
public CharTransformer getEscaper()
throws JspTagException
JspTagException
public void setValueOnly(Object v,
boolean noImplicitList)
throws JspTagException
JspTagException
public void setValue(Object v,
boolean noImplicitList)
throws JspTagException
JspTagExceptionpublic Object getValue()
public void setVartype(String t)
throws JspTagException
JspTagExceptionpublic final void setListdelimiter(Attribute l)
public int getVartype()
protected Writer getPageString(Writer w)
throws JspTagException,
IOException
JspTagException
IOExceptionpublic void haveBody()
public String getString()
public int doAfterBody()
throws JspTagException
JspTagException
public int doEndTag()
throws JspTagException
JspTagExceptionpublic void release()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||