|
NextApp Echo App Container 1.1.4 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnextapp.echoservlet.html.ElementContent
A representation of an Elements content.
| Field Summary |
| Fields inherited from interface nextapp.echoservlet.html.Renderable |
INDENT_STRING |
| Constructor Summary | |
ElementContent()
Creates a new Element Content object. |
|
| Method Summary | |
void |
add(int index,
Renderable child)
Adds a child element to this element at the specified index. |
void |
add(Renderable child)
Adds a child element to this element. |
void |
addHtml(int index,
java.lang.String html)
Adds raw HTML to the body of the tag at the specified index. |
void |
addHtml(java.lang.String html)
Adds raw HTML to the body of the tag. |
void |
addText(int index,
java.lang.String text,
boolean encodeNewLines)
Adds plain text to the tag at the specified index. |
void |
addText(java.lang.String text,
boolean encodeNewLines)
Adds plain text to the tag. |
int |
indexOf(java.lang.Object child)
Returns the index of the specified object if it is a child of this ElementContent object. |
void |
render(java.io.PrintWriter pw,
int depth,
boolean whitespaceRelevant)
Renders the renderable object to the given PrintWriter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ElementContent()
| Method Detail |
public void add(Renderable child)
child - The child element to be added.
public void add(int index,
Renderable child)
index - The index at which to add the child.child - The child element to be added.public void addHtml(java.lang.String html)
html - A string of encoded HTML.
public void addHtml(int index,
java.lang.String html)
index - The index at which to add the HTML.html - A string of encoded HTML.
public void addText(java.lang.String text,
boolean encodeNewLines)
text - A string of unencoded text that will be encoded to HTML.encodeNewLines - A flag indicating whether the encoding should
translate newline characters to <br> elements.
public void addText(int index,
java.lang.String text,
boolean encodeNewLines)
index - The index at which to add the text.text - A string of unencoded text that will be encoded to HTML.encodeNewLines - A flag indicating whether the encoding should
translate newline characters to <br> elements.public int indexOf(java.lang.Object child)
child - The child object whose index is desired.
public void render(java.io.PrintWriter pw,
int depth,
boolean whitespaceRelevant)
Renderable
render in interface Renderablepw - The PrintWriter to render to.depth - The indentation depth that should be applied to the element
being rendered.whitespaceRelevant - A flag that indicates whether the
containing element is sensitive to white space.Renderable.render(PrintWriter, int, boolean)
|
NextApp Echo App Container 1.1.4 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||