|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echoservlet.html.Element echopoint.ui.util.NoNameElement
The NoNameElement
class is used to contain other elements
however it does not generate an HTML element itself. It can be used when
you need an element parent but dont need a corresponding HTML parent tag
For example the JspTemplate code needs a "dummy" element into which it can render its children. However its does not need an parent HTML DIV element to do this. Rather it uses a NoNameElement to "contain" the child components output.
So instead of "<div> some content inside </div>" it would just generate "some content inside".
This component also allows you to "reach" into the element and extract child Renderable objects.
Field Summary |
Fields inherited from interface nextapp.echoservlet.html.Renderable |
INDENT_STRING |
Constructor Summary | |
NoNameElement()
|
Method Summary | |
void |
add(int index,
nextapp.echoservlet.html.Renderable child)
|
void |
add(nextapp.echoservlet.html.Renderable child)
|
void |
addHtml(int index,
java.lang.String html)
|
void |
addHtml(java.lang.String html)
|
void |
addText(int index,
java.lang.String text,
boolean encodeNewLines)
|
void |
addText(java.lang.String text)
|
void |
addText(java.lang.String text,
boolean encodeNewLines)
|
nextapp.echoservlet.html.Renderable |
getChild(int index)
Returns the Renderable child at index |
int |
indexOf(java.lang.Object child)
|
void |
render(java.io.PrintWriter pw,
int depth,
boolean parentWhitespaceRelevant)
|
java.util.Iterator |
renderables()
Returns an iterator of all the Renderable objects within this NoNameElement. |
Methods inherited from class nextapp.echoservlet.html.Element |
addAttribute, addAttribute, addAttribute, addElement, addElement, addElementContent, addElementContent, getAttribute, getName, isSticky, render, setClosingTagRequired, setSticky, setWhitespaceRelevant |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NoNameElement()
Method Detail |
public void add(int index, nextapp.echoservlet.html.Renderable child)
Element.add(int, nextapp.echoservlet.html.Renderable)
public void add(nextapp.echoservlet.html.Renderable child)
Element.add(nextapp.echoservlet.html.Renderable)
public void addHtml(int index, java.lang.String html)
Element.addHtml(int, java.lang.String)
public void addHtml(java.lang.String html)
Element.addHtml(java.lang.String)
public void addText(int index, java.lang.String text, boolean encodeNewLines)
Element.addText(int, java.lang.String, boolean)
public void addText(java.lang.String text)
Element.addText(java.lang.String)
public void addText(java.lang.String text, boolean encodeNewLines)
Element.addText(java.lang.String, boolean)
public void render(java.io.PrintWriter pw, int depth, boolean parentWhitespaceRelevant)
Renderable.render(java.io.PrintWriter, int, boolean)
public java.util.Iterator renderables()
public nextapp.echoservlet.html.Renderable getChild(int index)
index
- - the index to look at
public int indexOf(java.lang.Object child)
Element.indexOf(java.lang.Object)
|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |