Top Inners Fields Constructors Methods
com.sun.webkit.dom

public Class NodeImpl

extends JSObject
implements Node, EventTarget
Class Inheritance
All Implemented Interfaces
org.w3c.dom.events.EventTarget, org.w3c.dom.Node
Known Direct Subclasses
com.sun.webkit.dom.AttrImpl, com.sun.webkit.dom.CharacterDataImpl, com.sun.webkit.dom.DocumentFragmentImpl, com.sun.webkit.dom.DocumentImpl, com.sun.webkit.dom.DocumentTypeImpl, com.sun.webkit.dom.ElementImpl, com.sun.webkit.dom.EntityImpl, com.sun.webkit.dom.EntityReferenceImpl
Imports
com.sun.webkit.Disposer, .DisposerRecord, com.sun.webkit.dom.JSObject, org.w3c.dom.DOMException, .Document, .Element, .NamedNodeMap, .Node, .NodeList, .UserDataHandler, org.w3c.dom.events.Event, .EventListener, .EventTarget

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
private static int
private static NodeImpl.SelfDisposer[]
public static final int
public static final int
public static final int
Inherited from com.sun.webkit.dom.JSObject:
JS_CONTEXT_OBJECTJS_DOM_NODE_OBJECTJS_DOM_WINDOW_OBJECT

Constructor Summary

AccessConstructor and Description
pack-priv
NodeImpl(long peer)

Method Summary

Modifier and TypeMethod and Description
public void
addEventListener(String
The event type for which the user is registering
type
,
EventListener
The listener parameter takes an interface implemented by the user which contains the methods to be called when the event occurs.
listener
,
boolean
If true, useCapture indicates that the user wishes to initiate capture. After initiating capture, all events of the specified type will be dispatched to the registered EventListener before being dispatched to any EventTargets beneath them in the tree. Events which are bubbling upward through the tree will not trigger an EventListener designated to use capture.
useCapture
)

Implements org.w3c.dom.events.EventTarget.addEventListener.

This method allows the registration of event listeners on the event target.

pack-priv static native void
addEventListenerImpl(long peer, String type, long listener, boolean useCapture)

public Node
appendChild(Node
The node to add.If it is a DocumentFragment object, the entire contents of the document fragment are moved into the child list of this node
newChild
)

Implements org.w3c.dom.Node.appendChild.

Adds the node newChild to the end of the list of children of this node.

pack-priv static native long
appendChildImpl(long peer, long newChild)

public Node
cloneNode(boolean
If true, recursively clone the subtree under the specified node; if false, clone only the node itself (and its attributes, if it is an Element).
deep
)

Implements org.w3c.dom.Node.cloneNode.

Returns a duplicate of this node, i.e., serves as a generic copy constructor for nodes.

pack-priv static native long
cloneNodeImpl(long peer, boolean deep)

public short
compareDocumentPosition(Node
The node to compare against the reference node.
other
)

Implements org.w3c.dom.Node.compareDocumentPosition.

Compares the reference node, i.e. the node on which this method is being called, with a node, i.e. the one passed as a parameter, with regard to their position in the document and according to the document order.

pack-priv static native short
compareDocumentPositionImpl(long peer, long other)

public boolean
contains(Node other)

pack-priv static native boolean
containsImpl(long peer, long other)

pack-priv static Node
create(long peer)

pack-priv static Node
createInterface(long peer)

public boolean
dispatchEvent(Event
Specifies the event type, behavior, and contextual information to be used in processing the event.
event
)

Implements org.w3c.dom.events.EventTarget.dispatchEvent.

This method allows the dispatch of events into the implementations event model.

pack-priv static native boolean
dispatchEventImpl(long peer, long event)

private static native void
dispose(long peer)

public NamedNodeMap
getAttributes()

Implements org.w3c.dom.Node.getAttributes.

A NamedNodeMap containing the attributes of this node (if it is an Element) or null otherwise.

pack-priv static native long
getAttributesImpl(long peer)

public String
getBaseURI()

Implements org.w3c.dom.Node.getBaseURI.

The absolute base URI of this node or null if the implementation wasn't able to obtain an absolute URI.

pack-priv static native String
getBaseURIImpl(long peer)

private static Node
getCachedImpl(long peer)

public NodeList
getChildNodes()

Implements org.w3c.dom.Node.getChildNodes.

A NodeList that contains all children of this node.

pack-priv static native long
getChildNodesImpl(long peer)

public Object
getFeature(String
The name of the feature requested. Note that any plus sign "+" prepended to the name of the feature will be ignored since it is not significant in the context of this method.
feature
,
String
This is the version number of the feature to test.
version
)

Implements org.w3c.dom.Node.getFeature.

This method returns a specialized object which implements the specialized APIs of the specified feature and version, as specified in .

public Node
getFirstChild()

Implements org.w3c.dom.Node.getFirstChild.

The first child of this node.

pack-priv static native long
getFirstChildImpl(long peer)

pack-priv static Node
getImpl(long peer)

public Node
getLastChild()

Implements org.w3c.dom.Node.getLastChild.

The last child of this node.

pack-priv static native long
getLastChildImpl(long peer)

public String
getLocalName()

Implements org.w3c.dom.Node.getLocalName.

Returns the local part of the qualified name of this node.

pack-priv static native String
getLocalNameImpl(long peer)

public String
getNamespaceURI()

Implements org.w3c.dom.Node.getNamespaceURI.

The namespace URI of this node, or null if it is unspecified (see ).

pack-priv static native String
public Node
getNextSibling()

Implements org.w3c.dom.Node.getNextSibling.

The node immediately following this node.

pack-priv static native long
getNextSiblingImpl(long peer)

public String
getNodeName()

Implements org.w3c.dom.Node.getNodeName.

The name of this node, depending on its type; see the table above.

pack-priv static native String
getNodeNameImpl(long peer)

public short
getNodeType()

Implements org.w3c.dom.Node.getNodeType.

A code representing the type of the underlying object, as defined above.

pack-priv static native short
getNodeTypeImpl(long peer)

public String
getNodeValue()

Implements org.w3c.dom.Node.getNodeValue.

The value of this node, depending on its type; see the table above.

pack-priv static native String
getNodeValueImpl(long peer)

public Document
getOwnerDocument()

Implements org.w3c.dom.Node.getOwnerDocument.

The Document object associated with this node.

pack-priv static native long
public Element
pack-priv static native long
public Node
getParentNode()

Implements org.w3c.dom.Node.getParentNode.

The parent of this node.

pack-priv static native long
getParentNodeImpl(long peer)

pack-priv static long
public String
getPrefix()

Implements org.w3c.dom.Node.getPrefix.

The namespace prefix of this node, or null if it is unspecified.

pack-priv static native String
getPrefixImpl(long peer)

public Node
getPreviousSibling()

Implements org.w3c.dom.Node.getPreviousSibling.

The node immediately preceding this node.

pack-priv static native long
public String
getTextContent()

Implements org.w3c.dom.Node.getTextContent.

This attribute returns the text content of this node and its descendants.

pack-priv static native String
getTextContentImpl(long peer)

public Object
getUserData(String
The key the object is associated to.
key
)

Implements org.w3c.dom.Node.getUserData.

Retrieves the object associated to a key on a this node.

public boolean
hasAttributes()

Implements org.w3c.dom.Node.hasAttributes.

Returns whether this node (if it is an element) has any attributes.

pack-priv static native boolean
hasAttributesImpl(long peer)

public boolean
hasChildNodes()

Implements org.w3c.dom.Node.hasChildNodes.

Returns whether this node has any children.

pack-priv static native boolean
hasChildNodesImpl(long peer)

private static int
hashPeer(long peer)

public Node
insertBefore(Node
The node to insert.
newChild
,
Node
The reference node, i.e., the node before which the new node must be inserted.
refChild
)

Implements org.w3c.dom.Node.insertBefore.

Inserts the node newChild before the existing child node refChild.

pack-priv static native long
insertBeforeImpl(long peer, long newChild, long refChild)

public boolean
isDefaultNamespace(String
The namespace URI to look for.
namespaceURI
)

Implements org.w3c.dom.Node.isDefaultNamespace.

This method checks if the specified namespaceURI is the default namespace or not.

pack-priv static native boolean
isDefaultNamespaceImpl(long peer, String namespaceURI)

public boolean
isEqualNode(Node
The node to compare equality with.
other
)

Implements org.w3c.dom.Node.isEqualNode.

Tests whether two nodes are equal.

pack-priv static native boolean
isEqualNodeImpl(long peer, long other)

public boolean
isSameNode(Node
The node to test against.
other
)

Implements org.w3c.dom.Node.isSameNode.

Returns whether this node is the same node as the given one.

pack-priv static native boolean
isSameNodeImpl(long peer, long other)

public boolean
isSupported(String
The name of the feature to test.
feature
,
String
This is the version number of the feature to test.
version
)

Implements org.w3c.dom.Node.isSupported.

Tests whether the DOM implementation implements a specific feature and that feature is supported by this node, as specified in .

pack-priv static native boolean
isSupportedImpl(long peer, String feature, String version)

public String
lookupNamespaceURI(String
The prefix to look for. If this parameter is null, the method will return the default namespace URI if any.
prefix
)

Implements org.w3c.dom.Node.lookupNamespaceURI.

Look up the namespace URI associated to the given prefix, starting from this node.

pack-priv static native String
lookupNamespaceURIImpl(long peer, String prefix)

public String
lookupPrefix(String
The namespace URI to look for.
namespaceURI
)

Implements org.w3c.dom.Node.lookupPrefix.

Look up the prefix associated to the given namespace URI, starting from this node.

pack-priv static native String
lookupPrefixImpl(long peer, String namespaceURI)

public void
normalize()

Implements org.w3c.dom.Node.normalize.

Puts all Text nodes in the full depth of the sub-tree underneath this Node, including attribute nodes, into a "normal" form where only structure (e.g., elements, comments, processing instructions, CDATA sections, and entity references) separates Text nodes, i.e., there are neither adjacent Text nodes nor empty Text nodes.

pack-priv static native void
normalizeImpl(long peer)

private static void
public Node
removeChild(Node
The node being removed.
oldChild
)

Implements org.w3c.dom.Node.removeChild.

Removes the child node indicated by oldChild from the list of children, and returns it.

pack-priv static native long
removeChildImpl(long peer, long oldChild)

public void
removeEventListener(String
Specifies the event type of the EventListener being removed.
type
,
EventListener
The EventListener parameter indicates the EventListener to be removed.
listener
,
boolean
Specifies whether the EventListener being removed was registered as a capturing listener or not. If a listener was registered twice, one with capture and one without, each must be removed separately. Removal of a capturing listener does not affect a non-capturing version of the same listener, and vice versa.
useCapture
)

Implements org.w3c.dom.events.EventTarget.removeEventListener.

This method allows the removal of event listeners from the event target.

pack-priv static native void
removeEventListenerImpl(long peer, String type, long listener, boolean useCapture)

public Node
replaceChild(Node
The new node to put in the child list.
newChild
,
Node
The node being replaced in the list.
oldChild
)

Implements org.w3c.dom.Node.replaceChild.

Replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.

pack-priv static native long
replaceChildImpl(long peer, long newChild, long oldChild)

public void
setNodeValue(String value)

Implements org.w3c.dom.Node.setNodeValue.

The value of this node, depending on its type; see the table above.

pack-priv static native void
setNodeValueImpl(long peer, String value)

public void
setPrefix(String value)

Implements org.w3c.dom.Node.setPrefix.

The namespace prefix of this node, or null if it is unspecified.

pack-priv static native void
setPrefixImpl(long peer, String value)

public void
setTextContent(String value)

Implements org.w3c.dom.Node.setTextContent.

This attribute returns the text content of this node and its descendants.

pack-priv static native void
setTextContentImpl(long peer, String value)

public Object
setUserData(String
The key to associate the object to.
key
,
Object
The object to associate to the given key, or null to remove any existing association to that key.
data
,
UserDataHandler
The handler to associate to that key, or null.
handler
)

Implements org.w3c.dom.Node.setUserData.

Associate an object to a key on this node.

pack-priv static int
Inherited from com.sun.webkit.dom.JSObject:
callequalsevalgetMembergetPeergetSlothashCoderemoveMembersetMembersetSlottest_getPeerCounttoString