Package org.pepstock.charba.client.dom
Class BaseHtmlDocument
- java.lang.Object
-
- org.pepstock.charba.client.dom.BaseEventTarget
-
- org.pepstock.charba.client.dom.BaseNode
-
- org.pepstock.charba.client.dom.BaseDocument
-
- org.pepstock.charba.client.dom.BaseHtmlDocument
-
@JsType(isNative=true, name="HTMLDocument", namespace="<global>") public final class BaseHtmlDocument extends BaseDocument
Extends the document to include methods and properties that are specific to HTML documents.- 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 BaseHtmlElement
getActiveElement()
Returns the element within the DOM that currently has focus.Body
getBody()
Returns the <body> or <frameset> node of the current document, ornull
if no such element exists.-
Methods inherited from class org.pepstock.charba.client.dom.BaseDocument
createElement, createTextNode, getChildElementCount, getDocumentElement, getElementById, getElementsByTagName, getFirstElementChild, getHead, getLastElementChild, getScrollingElement
-
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, addEventListener, dispatchEvent, dispatchEvent, removeEventListener, removeEventListener
-
-
-
-
Method Detail
-
getActiveElement
@JsProperty public BaseHtmlElement getActiveElement()
Returns the element within the DOM that currently has focus.- Returns:
- the element within the DOM that currently has focus
-
getBody
@JsProperty public Body getBody()
Returns the <body> or <frameset> node of the current document, ornull
if no such element exists.- Returns:
- the <body> or <frameset> node of the current document, or
null
if no such element exists
-
-