net.sourceforge.ajaxtags.helpers
Class JavaScript

java.lang.Object
  extended by net.sourceforge.ajaxtags.helpers.AbstractHTMLElement
      extended by net.sourceforge.ajaxtags.helpers.JavaScript
All Implemented Interfaces:
Appendable, CharSequence

public final class JavaScript
extends AbstractHTMLElement

HTML JavaScript element. This will help building JavaScript.


Nested Class Summary
 
Nested classes/interfaces inherited from class net.sourceforge.ajaxtags.helpers.AbstractHTMLElement
AbstractHTMLElement.HTMLAttribute
 
Constructor Summary
JavaScript()
          Create a script element.
JavaScript(String script)
          Constructor.
 
Method Summary
protected  void cleanAttributes()
          Just allow type attribute.
 
Methods inherited from class net.sourceforge.ajaxtags.helpers.AbstractHTMLElement
append, append, append, charAt, getAttributes, getBody, getClassName, getId, getName, length, setBody, setClassName, setId, subSequence, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaScript

public JavaScript()
Create a script element.


JavaScript

public JavaScript(String script)
Constructor.

Parameters:
script - initial script content
Method Detail

cleanAttributes

protected void cleanAttributes()
Just allow type attribute. All others are dropped.

Overrides:
cleanAttributes in class AbstractHTMLElement


Copyright © 2005-2010 The Ajaxtags Team. All Rights Reserved.