| Package | Description |
|---|---|
| org.xwiki.gwt.dom.client |
| Modifier and Type | Method and Description |
|---|---|
Range |
Range.cloneRange()
Produces a new Range whose boundary-points are equal to the boundary-points of this range.
|
Range |
Document.createRange()
We've added this method because at the time of writing
Document doesn't offer
support for creating a range. |
Range |
RangeFactory.createRange(Document doc) |
Range |
Selection.getRangeAt(int index) |
Range |
DOMUtils.getTextRange(Range range)
Computes the longest text range included in the specified range.
|
Range |
DOMUtils.shrinkRange(Range range)
Computes the maximal sub-range of the given range that satisfies the following two conditions:
the start point is before a leaf element node that can't have child nodes (e.g.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Selection.addRange(Range range)
Adds a range to this selection.
|
short |
Range.compareBoundaryPoints(RangeCompare how,
Range sourceRange)
Compare the boundary-points of two Ranges in a document.
|
com.google.gwt.dom.client.Node |
DOMUtils.getFirstLeaf(Range range) |
com.google.gwt.dom.client.Node |
DOMUtils.getLastLeaf(Range range) |
com.google.gwt.dom.client.Node |
DOMUtils.getNextLeaf(Range range) |
com.google.gwt.dom.client.Node |
DOMUtils.getNextNode(Range range) |
com.google.gwt.dom.client.Node |
DOMUtils.getPreviousLeaf(Range range) |
com.google.gwt.dom.client.Node |
DOMUtils.getPreviousNode(Range range) |
Range |
DOMUtils.getTextRange(Range range)
Computes the longest text range included in the specified range.
|
void |
Selection.removeRange(Range range)
Removes the given range from the selection.
|
void |
DOMUtils.scrollIntoView(Range range)
Makes sure that a given DOM range is visible by scrolling it into view.
|
Range |
DOMUtils.shrinkRange(Range range)
Computes the maximal sub-range of the given range that satisfies the following two conditions:
the start point is before a leaf element node that can't have child nodes (e.g.
|
Copyright © 2004–2015 XWiki. All rights reserved.