Package | Description |
---|---|
org.w3c.dom.ranges |
Document Object Model Level 2 Traversal and Range is a
platform and language-neutral interfaces that allow programs
and scripts to dynamically traverse and identify a range of
content in a document.
|
Modifier and Type | Method and Description |
---|---|
void |
Range.insertNode(Node newNode)
Inserts a node into the Document or DocumentFragment at the start of
the Range.
|
void |
Range.selectNode(Node refNode)
Select a node and its contents
|
void |
Range.selectNodeContents(Node refNode)
Select the contents within a node
|
void |
Range.setEnd(Node refNode,
int offset)
Sets the attributes describing the end of a Range.
|
void |
Range.setEndAfter(Node refNode)
Sets the end of a Range to be after a node
|
void |
Range.setEndBefore(Node refNode)
Sets the end position to be before a node.
|
void |
Range.setStart(Node refNode,
int offset)
Sets the attributes describing the start of the Range.
|
void |
Range.setStartAfter(Node refNode)
Sets the start position to be after a node
|
void |
Range.setStartBefore(Node refNode)
Sets the start position to be before a node
|
void |
Range.surroundContents(Node newParent)
Reparents the contents of the Range to the given node and inserts the
node at the position of the start of the Range.
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-01-26-133437.ivan.openjdk9onspinwait