| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echoservlet.html.Script
public class Script
A container of JavaScript code. Provides the ability to add lines of JavaScript code that will be automatically indented correctly for the document in which they are rendered.
| Field Summary | 
|---|
| Fields inherited from interface nextapp.echoservlet.html.Renderable | 
|---|
INDENT_STRING | 
| Constructor Summary | |
|---|---|
Script()
Creates a new script object.  | 
|
| Method Summary | |
|---|---|
 void | 
add(int tab,
    java.lang.String line)
Adds a line of script code.  | 
static java.lang.String | 
encodeQuotedString(java.lang.String s)
Encodes single and double quotation marks found in a String by backslash escaping them.  | 
 void | 
render(java.io.PrintWriter pw,
       int depth,
       boolean parentWhitespaceRelevant)
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 Script()
| Method Detail | 
|---|
public static java.lang.String encodeQuotedString(java.lang.String s)
s - The string to be encoded.
public void add(int tab,
                java.lang.String line)
tab - The tab index to which the line should be indented.line - The line of code (with no leading spaces and no newline
        characters.
public void render(java.io.PrintWriter pw,
                   int depth,
                   boolean parentWhitespaceRelevant)
Renderable
render in interface Renderablepw - 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.Renderable.render(PrintWriter, int, boolean)
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||