EchoPoint
1.0

echopoint.ui.util
Class NoNameElement

java.lang.Object
  extended bynextapp.echoservlet.html.Element
      extended byechopoint.ui.util.NoNameElement
All Implemented Interfaces:
nextapp.echoservlet.html.Renderable, java.io.Serializable

public class NoNameElement
extends nextapp.echoservlet.html.Element

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.

See Also:
Serialized Form

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

NoNameElement

public NoNameElement()
Method Detail

add

public void add(int index,
                nextapp.echoservlet.html.Renderable child)
See Also:
Element.add(int, nextapp.echoservlet.html.Renderable)

add

public void add(nextapp.echoservlet.html.Renderable child)
See Also:
Element.add(nextapp.echoservlet.html.Renderable)

addHtml

public void addHtml(int index,
                    java.lang.String html)
See Also:
Element.addHtml(int, java.lang.String)

addHtml

public void addHtml(java.lang.String html)
See Also:
Element.addHtml(java.lang.String)

addText

public void addText(int index,
                    java.lang.String text,
                    boolean encodeNewLines)
See Also:
Element.addText(int, java.lang.String, boolean)

addText

public void addText(java.lang.String text)
See Also:
Element.addText(java.lang.String)

addText

public void addText(java.lang.String text,
                    boolean encodeNewLines)
See Also:
Element.addText(java.lang.String, boolean)

render

public void render(java.io.PrintWriter pw,
                   int depth,
                   boolean parentWhitespaceRelevant)
See Also:
Renderable.render(java.io.PrintWriter, int, boolean)

renderables

public java.util.Iterator renderables()
Returns an iterator of all the Renderable objects within this NoNameElement.

Returns:
an iterator if renderables

getChild

public nextapp.echoservlet.html.Renderable getChild(int index)
Returns the Renderable child at index

Parameters:
index - - the index to look at
Returns:
the Renderable child at index

indexOf

public int indexOf(java.lang.Object child)
See Also:
Element.indexOf(java.lang.Object)

EchoPoint
1.0