Package | Description |
---|---|
com.teamdev.jxbrowser.dom |
Provides the interfaces and classes for the Document Object Model (DOM).
|
Modifier and Type | Interface and Description |
---|---|
interface |
Attribute
An HTML DOM attribute.
|
interface |
Document
An HTML DOM document.
|
interface |
Element
An HTML DOM element.
|
interface |
FormControlElement
An HTML DOM form control element such as input, select, textarea, etc.
|
interface |
FormElement
An HTML DOM form element.
|
interface |
FrameElement
An HTML DOM frame or iframe element.
|
interface |
ImageElement
An HTML DOM image element.
|
interface |
InputElement
An HTML DOM input element.
|
interface |
OptionElement
An HTML DOM option element.
|
interface |
SelectElement
An HTML DOM select element.
|
interface |
TextAreaElement
An HTML DOM textarea element.
|
Modifier and Type | Method and Description |
---|---|
Node |
Document.createTextNode()
Creates and returns a
Node object representing a new text node with
an empty node value. |
Node |
Document.createTextNode(java.lang.String text)
Creates and returns a
Node object representing a new text node initialized with the
given text value. |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<Node> |
XPathResult.asSingleNode()
Returns an
Optional that contains the XPath result represented as a single node or an
empty Optional if it does not exist. |
java.util.List<Node> |
XPathResult.asSnapshotNodes()
Returns the XPath result represented as an immutable list of the snapshot nodes.
|
java.util.List<Node> |
Node.children()
Returns an immutable list of all children of this node.
|
java.util.Optional<Node> |
XPathResult.iterateNext()
Moves the iterator to the next node in the result set and returns an
Optional that
contains the Node object referenced by the current iterator. |
java.util.Optional<Node> |
Node.nextSibling()
Returns an
Optional that contains the next node in the document tree if such a node
exists, otherwise returns an empty Optional . |
default java.util.Optional<Node> |
PointInspection.node()
Returns the
Node at the point. |
java.util.Optional<Node> |
Node.parent()
Returns an
Optional that contains the parent of this node. |
java.util.Optional<Node> |
Node.previousSibling()
Returns an
Optional that contains the previous node in the document tree if such a
node exists, otherwise returns an empty Optional . |
Modifier and Type | Method and Description |
---|---|
boolean |
Node.appendChild(Node childNode)
Adds the given
node as a child of the current node to the end of its children list. |
java.util.Set<DocumentPosition> |
Node.compareDocumentPosition(Node otherNode)
Compares position of the current node against another node in a DOM tree.
|
boolean |
Node.insertChild(Node node,
Node beforeNode)
Inserts the given
node before the given beforeNode as a child of the current
node. |
boolean |
Node.removeChild(Node childNode)
Removes the given
childNode of the current node from the DOM. |
boolean |
Node.replaceChild(Node newNode,
Node oldNode)
Replaces the given child
oldNode of the current node with the given newNode . |