|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xpn.xwiki.wysiwyg.client.selection.internal.AbstractRange
com.xpn.xwiki.wysiwyg.client.selection.internal.IERange
public class IERange
| Method Summary | |
|---|---|
DocumentFragment |
cloneContents()
Duplicates the contents of a Range. |
Range |
cloneRange()
Produces a new Range whose boundary-points are equal to the boundary-points of the Range. |
void |
collapse(boolean toStart)
Collapse a Range onto one of its boundary-points. |
protected short |
compareBoundaryPoints(int how,
com.google.gwt.core.client.JavaScriptObject sourceRange)
|
void |
deleteContents()
Removes the contents of a Range from the containing document or document fragment without returning a reference to the removed content. |
void |
detach()
Called to indicate that the Range is no longer in use and that the implementation may relinquish any resources associated with this Range. |
DocumentFragment |
extractContents()
Moves the contents of a Range from the containing document or document fragment to a new DocumentFragment. |
com.google.gwt.dom.client.Node |
getCommonAncestorContainer()
|
com.google.gwt.dom.client.Node |
getEndContainer()
|
int |
getEndOffset()
|
com.google.gwt.dom.client.Node |
getStartContainer()
|
int |
getStartOffset()
|
void |
insertNode(com.google.gwt.dom.client.Node newNode)
Inserts a node into the Document or DocumentFragment at the start of the Range. |
boolean |
isCollapsed()
|
void |
selectNode(com.google.gwt.dom.client.Node refNode)
Select a node and its contents. |
void |
selectNodeContents(com.google.gwt.dom.client.Node refNode)
Select the contents within a node. |
void |
setEnd(com.google.gwt.dom.client.Node refNode,
int offset)
Sets the attributes describing the end of a Range. |
void |
setEndAfter(com.google.gwt.dom.client.Node refNode)
Sets the end of a Range to be after a node. |
void |
setEndBefore(com.google.gwt.dom.client.Node refNode)
Sets the end position to be before a node. |
void |
setStart(com.google.gwt.dom.client.Node refNode,
int offset)
Sets the attributes describing the start of the Range. |
void |
setStartAfter(com.google.gwt.dom.client.Node refNode)
Sets the start position to be after a node. |
void |
setStartBefore(com.google.gwt.dom.client.Node refNode)
Sets the start position to be before a node. |
void |
surroundContents(com.google.gwt.dom.client.Node newParent)
Re-parents the contents of the Range to the given node and inserts the node at the position of the start of the Range. |
java.lang.String |
toString()
Returns the contents of a Range as a string. |
| Methods inherited from class com.xpn.xwiki.wysiwyg.client.selection.internal.AbstractRange |
|---|
compareBoundaryPoints, getJSRange |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public DocumentFragment cloneContents()
Range
public Range cloneRange()
Range
public void collapse(boolean toStart)
Range
toStart - If true, collapses the Range onto its start; if false, collapses it onto its end.
protected short compareBoundaryPoints(int how,
com.google.gwt.core.client.JavaScriptObject sourceRange)
compareBoundaryPoints in class AbstractRangepublic void deleteContents()
Range
public void detach()
Range
public DocumentFragment extractContents()
Range
public com.google.gwt.dom.client.Node getCommonAncestorContainer()
public com.google.gwt.dom.client.Node getEndContainer()
public int getEndOffset()
public com.google.gwt.dom.client.Node getStartContainer()
public int getStartOffset()
public void insertNode(com.google.gwt.dom.client.Node newNode)
Range
newNode - The node to insert at the start of the Range.public boolean isCollapsed()
public void selectNode(com.google.gwt.dom.client.Node refNode)
Range
refNode - The node to select.public void selectNodeContents(com.google.gwt.dom.client.Node refNode)
Range
refNode - Node to select from.
public void setEnd(com.google.gwt.dom.client.Node refNode,
int offset)
Range
refNode - The refNode value. This parameter must be different from null.offset - The endOffset value.public void setEndAfter(com.google.gwt.dom.client.Node refNode)
Range
refNode - Range ends after refNode.public void setEndBefore(com.google.gwt.dom.client.Node refNode)
Range
refNode - Range ends before refNode.
public void setStart(com.google.gwt.dom.client.Node refNode,
int offset)
Range
refNode - The refNode value. This parameter must be different from null.offset - The startOffset value.public void setStartAfter(com.google.gwt.dom.client.Node refNode)
Range
refNode - Range starts after refNode.public void setStartBefore(com.google.gwt.dom.client.Node refNode)
Range
refNode - Range starts before refNode.public void surroundContents(com.google.gwt.dom.client.Node newParent)
Range
newParent - The node to surround the contents with.public java.lang.String toString()
Range
toString in interface RangetoString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||