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 |
int |
endOffset |
static double |
START_TO_END |
static double |
START_TO_START |
Node |
startContainer |
int |
startOffset |
Constructor and Description |
---|
Range() |
Modifier and Type | Method and Description |
---|---|
DocumentFragment |
cloneContents() |
Range |
cloneRange() |
void |
collapse(boolean toStart) |
int |
compareBoundaryPoints(int 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,
int offset) |
void |
setEndAfter(Node refNode) |
void |
setEndBefore(Node refNode) |
void |
setStart(Node refNode,
int 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 int endOffset
public Node startContainer
public int startOffset
public DocumentFragment cloneContents()
public Range cloneRange()
public void collapse(boolean toStart)
public int compareBoundaryPoints(int 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, int offset)
public void setEndAfter(Node refNode)
public void setEndBefore(Node refNode)
public void setStart(Node refNode, int offset)
public void setStartAfter(Node refNode)
public void setStartBefore(Node refNode)
public void surroundContents(Node newParent)