Class Script
- java.lang.Object
-
- org.pepstock.charba.client.dom.BaseEventTarget
-
- org.pepstock.charba.client.dom.BaseNode
-
- org.pepstock.charba.client.dom.BaseElement
-
- org.pepstock.charba.client.dom.BaseHtmlElement
-
- org.pepstock.charba.client.dom.elements.Script
-
@JsType(isNative=true, name="HTMLScriptElement", namespace="<global>") public final class Script extends BaseHtmlElement
Provides special properties and methods for manipulating the behavior and execution of <script> elements- Author:
- Andrea "Stock" Stocchero
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.pepstock.charba.client.dom.BaseEventTarget
BaseEventTarget.EventListenerCallback
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCharset()
Returns the character encoding of an external script.String
getSrc()
Returns the URL of an external script.String
getType()
Returns the MIME type of the script.void
setCharset(String charset)
Sets the character encoding of an external script.void
setSrc(String src)
Sets the URL of an external script.void
setType(String type)
Sets the MIME type of the script.-
Methods inherited from class org.pepstock.charba.client.dom.BaseHtmlElement
getAbsoluteLeft, getAbsoluteTop, getInnerText, getOffsetHeight, getOffsetLeft, getOffsetParent, getOffsetTop, getOffsetWidth, getParentHtmlElement, getScrollingElement, getStyle, getTabIndex, removeFromParent, setInnerText, setTabIndex
-
Methods inherited from class org.pepstock.charba.client.dom.BaseElement
getAttributes, getChildElementCount, getClientHeight, getClientLeft, getClientTop, getClientWidth, getElementsByTagName, getFirstElementChild, getId, getInnerHTML, getLastElementChild, getNextElementSibling, getOuterHTML, getPreviousElementSibling, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getTagName, hasAttributes, remove, setId, setInnerHTML
-
Methods inherited from class org.pepstock.charba.client.dom.BaseNode
appendChild, cloneNode, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPreviousSibling, getTextContent, hasChildNodes, insertBefore, removeAllChildren, removeChild, setNodeValue, setTextContent
-
Methods inherited from class org.pepstock.charba.client.dom.BaseEventTarget
addEventListener, removeEventListener
-
-
-
-
Field Detail
-
TAG
@JsOverlay public static final String TAG
The tag for this element.- See Also:
- Constant Field Values
-
-
Method Detail
-
getCharset
@JsProperty public String getCharset()
Returns the character encoding of an external script.- Returns:
- the character encoding of an external script
-
setCharset
@JsProperty public void setCharset(String charset)
Sets the character encoding of an external script.- Parameters:
charset
- the character encoding of an external script
-
getSrc
@JsProperty public String getSrc()
Returns the URL of an external script.- Returns:
- the URL of an external script
-
setSrc
@JsProperty public void setSrc(String src)
Sets the URL of an external script.- Parameters:
src
- the URL of an external script
-
getType
@JsProperty public String getType()
Returns the MIME type of the script.- Returns:
- the MIME type of the script
-
setType
@JsProperty public void setType(String type)
Sets the MIME type of the script.- Parameters:
type
- the MIME type of the script
-
-