NextApp Echo
App Container 1.1.4

nextapp.echoservlet.html
Interface Renderable

All Known Implementing Classes:
Element, ElementContent, Script, Style, StyleElement

public interface Renderable

An interface for an entity which may be rendered as part of an HTML document. This is a common interface implemented by HTML elements, CSS styles and blocks of JavaScript code.


Field Summary
static java.lang.String INDENT_STRING
          A string which will be used to indent the document.
 
Method Summary
 void render(java.io.PrintWriter pw, int depth, boolean parentWhitespaceRelevant)
          Renders the renderable object to the given PrintWriter.
 

Field Detail

INDENT_STRING

public static final java.lang.String INDENT_STRING
A string which will be used to indent the document. This string should contain spaces or tabs.

See Also:
Constant Field Values
Method Detail

render

public void render(java.io.PrintWriter pw,
                   int depth,
                   boolean parentWhitespaceRelevant)
Renders the renderable object to the given PrintWriter.

Parameters:
pw - The PrintWriter to render to.
depth - The indentation depth that should be applied to the element being rendered.
parentWhitespaceRelevant - A flag that indicates whether the containing element is sensitive to white space.

NextApp Echo
App Container 1.1.4