org.wings.header
Class Script

java.lang.Object
  extended by org.wings.header.Script
All Implemented Interfaces:
Serializable, Header, Renderable
Direct Known Subclasses:
JavaScriptHeader

public class Script
extends Object
implements Header, Serializable

Include a <SCRIPT>-element inside the HTML header of rendered page.

Author:
Holger Engels
See Also:
Serialized Form

Field Summary
protected  String language
           
protected  String type
           
protected  URLResource urlSource
           
 
Constructor Summary
Script(String language, String type, URLResource urlSource)
          Deprecated. language is deprecated, use Script(type, urlSource) instead
Script(String type, URLResource urlSource)
          creates a script object which can be added to the frame
 
Method Summary
 boolean equals(Object obj)
           
 String getLanguage()
           
 String getType()
           
 SimpleURL getURL()
           
 int hashCode()
           
 void setLanguage(String language)
           
 void setType(String type)
           
 String toString()
           
 void write(Device d)
          Write this Renderable component to some output device.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

language

protected String language

type

protected String type

urlSource

protected URLResource urlSource
Constructor Detail

Script

public Script(String language,
              String type,
              URLResource urlSource)
Deprecated. language is deprecated, use Script(type, urlSource) instead


Script

public Script(String type,
              URLResource urlSource)
creates a script object which can be added to the frame

Parameters:
type - the type of the script
urlSource - the url of the script
Method Detail

setLanguage

public void setLanguage(String language)

getLanguage

public String getLanguage()

setType

public void setType(String type)

getType

public String getType()

getURL

public SimpleURL getURL()

write

public void write(Device d)
           throws IOException
Description copied from interface: Renderable
Write this Renderable component to some output device.

Specified by:
write in interface Renderable
Throws:
IOException

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


wingS Swings ;-)