|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.html.JavaScript
public class JavaScript
Represents a javascript element.
Constructor Summary | |
---|---|
JavaScript(java.lang.String content)
Creates by assigning the content (JavaScript codes). |
|
JavaScript(java.lang.String src,
java.lang.String charset)
Creates by specifying the file to contain the JavaScript codes. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getCharset()
Returns the charset, or null if getContent() is not null. |
java.lang.String |
getContent()
Returns the JavaScript codes, or null if getSrc() is not null. |
java.lang.String |
getSrc()
Returns the URI of the file containing the JavaScript codes, or null if getContent() is not null. |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JavaScript(java.lang.String src, java.lang.String charset)
src
- URI of the file containing the JavaScript codes.charset
- the charset. If null, "UTF-8" is assumed.public JavaScript(java.lang.String content)
content
- the JavaScript codes.Method Detail |
---|
public java.lang.String getSrc()
getContent()
is not null.
public java.lang.String getCharset()
getContent()
is not null.
public java.lang.String getContent()
getSrc()
is not null.
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |