public class Range
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
collapsed |
Node |
commonAncestorContainer |
static double |
END_TO_END |
static double |
END_TO_START |
Node |
endContainer |
double |
endOffset |
static double |
START_TO_END |
static double |
START_TO_START |
Node |
startContainer |
double |
startOffset |
| Constructor and Description |
|---|
Range() |
| Modifier and Type | Method and Description |
|---|---|
DocumentFragment |
cloneContents() |
Range |
cloneRange() |
void |
collapse(boolean toStart) |
double |
compareBoundaryPoints(double how,
Range sourceRange) |
double |
deleteContents() |
void |
detach() |
DocumentFragment |
extractContents() |
ClientRect |
getBoundingClientRect() |
ClientRectList |
getClientRects() |
DocumentFragment |
insertNode(Node newNode) |
void |
selectNode(Node refNode) |
void |
selectNodeContents(Node refNode) |
void |
setEnd(Node refNode,
double offset) |
void |
setEndAfter(Node refNode) |
void |
setEndBefore(Node refNode) |
void |
setStart(Node refNode,
double offset) |
void |
setStartAfter(Node refNode) |
void |
setStartBefore(Node refNode) |
void |
surroundContents(Node newParent) |
public static final double END_TO_END
public static final double END_TO_START
public static final double START_TO_END
public static final double START_TO_START
public boolean collapsed
public Node commonAncestorContainer
public Node endContainer
public double endOffset
public Node startContainer
public double startOffset
public DocumentFragment cloneContents()
public Range cloneRange()
public void collapse(boolean toStart)
public double compareBoundaryPoints(double how,
Range sourceRange)
public double deleteContents()
public void detach()
public DocumentFragment extractContents()
public ClientRect getBoundingClientRect()
public ClientRectList getClientRects()
public DocumentFragment insertNode(Node newNode)
public void selectNode(Node refNode)
public void selectNodeContents(Node refNode)
public void setEnd(Node refNode, double offset)
public void setEndAfter(Node refNode)
public void setEndBefore(Node refNode)
public void setStart(Node refNode, double offset)
public void setStartAfter(Node refNode)
public void setStartBefore(Node refNode)
public void surroundContents(Node newParent)