Package org.zkoss.html
Class JavaScript
java.lang.Object
org.zkoss.html.JavaScript
Represents a javascript element.
- Since:
- 6.0.0
- Author:
- tomyeh
-
Constructor Summary
ConstructorsConstructorDescriptionJavaScript(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
Modifier and TypeMethodDescriptionbooleanReturns the charset, or null ifgetContent()is not null.Returns the JavaScript codes, or null ifgetSrc()is not null.getSrc()Returns the URI of the file containing the JavaScript codes, or null ifgetContent()is not null.inthashCode()toString()
-
Constructor Details
-
JavaScript
Creates by specifying the file to contain the JavaScript codes.- Parameters:
src- URI of the file containing the JavaScript codes.charset- the charset. If null, "UTF-8" is assumed.
-
JavaScript
Creates by assigning the content (JavaScript codes).- Parameters:
content- the JavaScript codes.
-
-
Method Details
-
getSrc
Returns the URI of the file containing the JavaScript codes, or null ifgetContent()is not null. -
getCharset
Returns the charset, or null ifgetContent()is not null. -
getContent
Returns the JavaScript codes, or null ifgetSrc()is not null. -
toString
-
hashCode
public int hashCode() -
equals
-