@JsType(isNative=true, name="Range", namespace="<global>") public class Range extends Object
Constructor and Description |
---|
Range() |
Modifier and Type | Method and Description |
---|---|
DocumentFragment |
cloneContents() |
Range |
cloneRange() |
void |
collapse(boolean toStart) |
int |
compareBoundaryPoints(int how,
Range sourceRange) |
int |
comparePoint(Node<?> referenceNode,
int offset) |
DocumentFragment |
createContextualFragment(String tagString) |
void |
deleteContents() |
void |
detach() |
DocumentFragment |
extractContents() |
DOMRect |
getBoundingClientRect() |
DOMRect |
getClientRects() |
<N extends Node<N>> |
getCommonAncestorContainer() |
<N extends Node<N>> |
getEndContainer() |
int |
getEndOffset() |
<N extends Node<N>> |
getStartContainer() |
int |
getStartOffset() |
void |
insertNode(Node<?> newNode) |
boolean |
intersectsNode(Node<?> referenceNode) |
boolean |
isCollapsed() |
boolean |
isPointInRange(Node<?> node,
int offset) |
void |
selectNode(Node<?> referenceNode) |
void |
selectNodeContents(Node<?> referenceNode) |
void |
setEnd(Node<?> endNode,
int offset) |
void |
setEndAfter(Node<?> referenceNode) |
void |
setEndBefore(Node<?> referenceNode) |
void |
setStart(Node<?> startNode,
int offset) |
void |
setStartAfter(Node<?> referenceNode) |
void |
setStartBefore(Node<?> referenceNode) |
void |
surroundContents(Node<?> newNode) |
String |
toString() |
@JsProperty(name="collapsed") public boolean isCollapsed()
@JsProperty(name="commonAncestorContainer") public <N extends Node<N>> N getCommonAncestorContainer()
@JsProperty(name="endContainer") public <N extends Node<N>> N getEndContainer()
@JsProperty(name="endOffset") public int getEndOffset()
@JsProperty(name="startContainer") public <N extends Node<N>> N getStartContainer()
@JsProperty(name="startOffset") public int getStartOffset()
public void setStart(Node<?> startNode, int offset)
public void setEnd(Node<?> endNode, int offset)
public void setStartBefore(Node<?> referenceNode)
public void setStartAfter(Node<?> referenceNode)
public void setEndBefore(Node<?> referenceNode)
public void setEndAfter(Node<?> referenceNode)
public void selectNode(Node<?> referenceNode)
public void selectNodeContents(Node<?> referenceNode)
public void collapse(boolean toStart)
public DocumentFragment cloneContents()
public void deleteContents()
public DocumentFragment extractContents()
public void insertNode(Node<?> newNode)
public void surroundContents(Node<?> newNode)
public int compareBoundaryPoints(int how, Range sourceRange)
public Range cloneRange()
public void detach()
public int comparePoint(Node<?> referenceNode, int offset)
public DocumentFragment createContextualFragment(String tagString)
public DOMRect getBoundingClientRect()
public DOMRect getClientRects()
public boolean intersectsNode(Node<?> referenceNode)
public boolean isPointInRange(Node<?> node, int offset)
Copyright © 2018 Xalys. All rights reserved.