Class Node
java.lang.Object
elemental2.dom.Node
- All Implemented Interfaces:
EventTarget
- Direct Known Subclasses:
Attr
,CharacterData
,Document
,DocumentFragment
,DocumentType
,Element
,ProcessingInstruction
,XPathNamespace
@JsType(isNative=true,
namespace="<global>")
public class Node
extends Object
implements EventTarget
-
Nested Class Summary
Nested classes/interfaces inherited from interface elemental2.dom.EventTarget
EventTarget.AddEventListenerListenerFn, EventTarget.AddEventListenerOptionsUnionType, EventTarget.RemoveEventListenerListenerFn, EventTarget.RemoveEventListenerOptionsUnionType
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
boolean
int
static final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addEventListener
(String type, EventListener listener) void
addEventListener
(String type, EventListener listener, EventTarget.AddEventListenerOptionsUnionType options) appendChild
(Node newChild) cloneNode
(boolean deep) int
compareDocumentPosition
(Node other) boolean
boolean
dispatchEvent
(Event evt) elemental2.core.JsObject
getFeature
(String feature, String version) getRootNode
(GetRootNodeOptions options) elemental2.core.JsObject
getUserData
(String key) boolean
boolean
insertBefore
(Node newChild, Node refChild) boolean
isDefaultNamespace
(String namespaceURI) boolean
isEqualNode
(Node arg) boolean
isSameNode
(Node other) lookupNamespaceURI
(String prefix) lookupPrefix
(String namespaceURI) void
querySelector
(String query) querySelectorAll
(String query) removeChild
(Node oldChild) void
removeEventListener
(String type, EventListener listener) void
removeEventListener
(String type, EventListener listener, EventTarget.RemoveEventListenerOptionsUnionType options) replaceChild
(Node newChild, Node oldChild) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface elemental2.dom.EventTarget
addEventListener, addEventListener, removeEventListener, removeEventListener
-
Field Details
-
ATTRIBUTE_NODE
@JsOverlay public static final int ATTRIBUTE_NODE -
CDATA_SECTION_NODE
@JsOverlay public static final int CDATA_SECTION_NODE -
COMMENT_NODE
@JsOverlay public static final int COMMENT_NODE -
DOCUMENT_FRAGMENT_NODE
@JsOverlay public static final int DOCUMENT_FRAGMENT_NODE -
DOCUMENT_NODE
@JsOverlay public static final int DOCUMENT_NODE -
DOCUMENT_POSITION_CONTAINED_BY
@JsOverlay public static final int DOCUMENT_POSITION_CONTAINED_BY -
DOCUMENT_POSITION_CONTAINS
@JsOverlay public static final int DOCUMENT_POSITION_CONTAINS -
DOCUMENT_POSITION_DISCONNECTED
@JsOverlay public static final int DOCUMENT_POSITION_DISCONNECTED -
DOCUMENT_POSITION_FOLLOWING
@JsOverlay public static final int DOCUMENT_POSITION_FOLLOWING -
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
@JsOverlay public static final int DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC -
DOCUMENT_POSITION_PRECEDING
@JsOverlay public static final int DOCUMENT_POSITION_PRECEDING -
DOCUMENT_TYPE_NODE
@JsOverlay public static final int DOCUMENT_TYPE_NODE -
ELEMENT_NODE
@JsOverlay public static final int ELEMENT_NODE -
ENTITY_NODE
@JsOverlay public static final int ENTITY_NODE -
ENTITY_REFERENCE_NODE
@JsOverlay public static final int ENTITY_REFERENCE_NODE -
NOTATION_NODE
@JsOverlay public static final int NOTATION_NODE -
PROCESSING_INSTRUCTION_NODE
@JsOverlay public static final int PROCESSING_INSTRUCTION_NODE -
TEXT_NODE
@JsOverlay public static final int TEXT_NODE -
assignedSlot
-
attributes
-
baseURI
-
childNodes
-
firstChild
-
isConnected
public boolean isConnected -
lastChild
-
localName
-
namespaceURI
-
nextSibling
-
nodeName
-
nodeType
public int nodeType -
nodeValue
-
ownerDocument
-
parentElement
-
parentNode
-
prefix
-
previousSibling
-
textContent
-
-
Constructor Details
-
Node
public Node()
-
-
Method Details
-
addEventListener
public void addEventListener(String type, EventListener listener, EventTarget.AddEventListenerOptionsUnionType options) - Specified by:
addEventListener
in interfaceEventTarget
-
addEventListener
- Specified by:
addEventListener
in interfaceEventTarget
-
appendChild
-
cloneNode
-
compareDocumentPosition
-
contains
-
dispatchEvent
- Specified by:
dispatchEvent
in interfaceEventTarget
-
getFeature
-
getRootNode
-
getRootNode
-
getUserData
-
hasAttributes
public boolean hasAttributes() -
hasChildNodes
public boolean hasChildNodes() -
insertBefore
-
isDefaultNamespace
-
isEqualNode
-
isSameNode
-
lookupNamespaceURI
-
lookupPrefix
-
normalize
public void normalize() -
querySelector
-
querySelectorAll
-
removeChild
-
removeEventListener
public void removeEventListener(String type, EventListener listener, EventTarget.RemoveEventListenerOptionsUnionType options) - Specified by:
removeEventListener
in interfaceEventTarget
-
removeEventListener
- Specified by:
removeEventListener
in interfaceEventTarget
-
replaceChild
-