nextapp.echoservlet.html
Class ScriptElement

java.lang.Object
  extended by nextapp.echoservlet.html.Element
      extended by nextapp.echoservlet.html.ScriptElement
All Implemented Interfaces:
java.io.Serializable, Renderable

public class ScriptElement
extends Element

An HTML element that contains JavaScript code.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface nextapp.echoservlet.html.Renderable
INDENT_STRING
 
Constructor Summary
ScriptElement()
          Creates a new script element.
 
Method Summary
 void add(Script script)
          Adds a script block to the element.
 
Methods inherited from class nextapp.echoservlet.html.Element
add, add, addAttribute, addAttribute, addAttribute, addElement, addElement, addElementContent, addElementContent, addHtml, addHtml, addText, addText, addText, allocate, allocate, getAttribute, getContents, getCreationCount, getName, indexOf, isSticky, releaseElements, removeAttribute, render, render, renderAsStyleAttribute, reset, setClosingTagRequired, setSticky, setWhitespaceRelevant
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptElement

public ScriptElement()
Creates a new script element.

Method Detail

add

public void add(Script script)
Adds a script block to the element.

Parameters:
script - The script to be added.