|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.ui.render.Out
public class Out
A utility to simulate DSP's out action.
It is designed to simplify the job to port DSP to
ComponentRenderer.
For example,
new Out(self.getLabel()).setMaxlength(maxlen).render(out);
| Constructor Summary | |
|---|---|
Out(java.lang.String value)
|
|
| Method Summary | |
|---|---|
boolean |
getEscapeXML()
Returns whether to escape XML. |
int |
getMaxlength()
Returns the maxlength of bytes to output. |
boolean |
getNbsp()
Returns whether to generate if the content is empty. |
java.lang.String |
getValue()
Returns the value. |
void |
render(java.io.Writer out)
Generates the output to the specified writer. |
Out |
setEscapeXML(boolean escapeXML)
Sets whether to escape XML. |
Out |
setMaxlength(int maxlength)
Sets the maxlength to output. |
Out |
setNbsp(boolean nbsp)
Sets whether to generate if the content is empty. |
Out |
setValue(java.lang.String value)
Sets the value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Out(java.lang.String value)
| Method Detail |
|---|
public boolean getEscapeXML()
public Out setEscapeXML(boolean escapeXML)
public boolean getNbsp()
public Out setNbsp(boolean nbsp)
public java.lang.String getValue()
public Out setValue(java.lang.String value)
public int getMaxlength()
Default: 0 (no limit).
public Out setMaxlength(int maxlength)
public void render(java.io.Writer out)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||