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
-
- All Implemented Interfaces:
IsJSType
@JsType(isNative=true, name="HTMLScriptElement", namespace="<global>") public final class Script extends BaseHtmlElementProvides 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 StringgetCharset()Returns the character encoding of an external script.StringgetSrc()Returns the URL of an external script.StringgetType()Returns the MIME type of the script.voidsetCharset(String charset)Sets the character encoding of an external script.voidsetSrc(String src)Sets the URL of an external script.voidsetType(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
-
-