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