|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gargoylesoftware.htmlunit.html.impl.SimpleRange
public class SimpleRange
Simple implementation of Range.
| Field Summary |
|---|
| Fields inherited from interface org.w3c.dom.ranges.Range |
|---|
END_TO_END, END_TO_START, START_TO_END, START_TO_START |
| Constructor Summary | |
|---|---|
SimpleRange()
Constructs a range without any content. |
|
SimpleRange(Node node)
Constructs a range for the specified element. |
|
SimpleRange(Node node,
int offset)
Constructs a range for the provided element and start and end offset. |
|
SimpleRange(Node startNode,
int startOffset,
Node endNode,
int endOffset)
Constructs a range for the provided elements and offsets. |
|
| Method Summary | |
|---|---|
DomDocumentFragment |
cloneContents()
|
org.w3c.dom.ranges.Range |
cloneRange()
|
void |
collapse(boolean toStart)
|
short |
compareBoundaryPoints(short how,
org.w3c.dom.ranges.Range sourceRange)
|
void |
deleteContents()
|
void |
detach()
|
boolean |
equals(Object obj)
|
DomDocumentFragment |
extractContents()
|
boolean |
getCollapsed()
|
Node |
getCommonAncestorContainer()
|
Node |
getEndContainer()
|
int |
getEndOffset()
|
Node |
getStartContainer()
|
int |
getStartOffset()
|
int |
hashCode()
|
void |
insertNode(Node newNode)
|
void |
selectNode(Node node)
|
void |
selectNodeContents(Node node)
|
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)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleRange()
public SimpleRange(Node node)
node - the node for the range
public SimpleRange(Node node,
int offset)
node - the node for the rangeoffset - the start and end offset
public SimpleRange(Node startNode,
int startOffset,
Node endNode,
int endOffset)
startNode - the start nodestartOffset - the start offsetendNode - the end nodeendOffset - the end offset| Method Detail |
|---|
public DomDocumentFragment cloneContents()
throws DOMException
cloneContents in interface org.w3c.dom.ranges.RangeDOMException
public org.w3c.dom.ranges.Range cloneRange()
throws DOMException
cloneRange in interface org.w3c.dom.ranges.RangeDOMException
public void collapse(boolean toStart)
throws DOMException
collapse in interface org.w3c.dom.ranges.RangeDOMException
public short compareBoundaryPoints(short how,
org.w3c.dom.ranges.Range sourceRange)
throws DOMException
compareBoundaryPoints in interface org.w3c.dom.ranges.RangeDOMException
public void deleteContents()
throws DOMException
deleteContents in interface org.w3c.dom.ranges.RangeDOMException
public void detach()
throws DOMException
detach in interface org.w3c.dom.ranges.RangeDOMException
public DomDocumentFragment extractContents()
throws DOMException
extractContents in interface org.w3c.dom.ranges.RangeDOMException
public boolean getCollapsed()
throws DOMException
getCollapsed in interface org.w3c.dom.ranges.RangeDOMException
public Node getCommonAncestorContainer()
throws DOMException
getCommonAncestorContainer in interface org.w3c.dom.ranges.RangeDOMException
public Node getEndContainer()
throws DOMException
getEndContainer in interface org.w3c.dom.ranges.RangeDOMException
public int getEndOffset()
throws DOMException
getEndOffset in interface org.w3c.dom.ranges.RangeDOMException
public Node getStartContainer()
throws DOMException
getStartContainer in interface org.w3c.dom.ranges.RangeDOMException
public int getStartOffset()
throws DOMException
getStartOffset in interface org.w3c.dom.ranges.RangeDOMException
public void insertNode(Node newNode)
throws DOMException,
org.w3c.dom.ranges.RangeException
insertNode in interface org.w3c.dom.ranges.RangeDOMException
org.w3c.dom.ranges.RangeException
public void selectNode(Node node)
throws org.w3c.dom.ranges.RangeException,
DOMException
selectNode in interface org.w3c.dom.ranges.Rangeorg.w3c.dom.ranges.RangeException
DOMException
public void selectNodeContents(Node node)
throws org.w3c.dom.ranges.RangeException,
DOMException
selectNodeContents in interface org.w3c.dom.ranges.Rangeorg.w3c.dom.ranges.RangeException
DOMException
public void setEnd(Node refNode,
int offset)
throws org.w3c.dom.ranges.RangeException,
DOMException
setEnd in interface org.w3c.dom.ranges.Rangeorg.w3c.dom.ranges.RangeException
DOMException
public void setEndAfter(Node refNode)
throws org.w3c.dom.ranges.RangeException,
DOMException
setEndAfter in interface org.w3c.dom.ranges.Rangeorg.w3c.dom.ranges.RangeException
DOMException
public void setEndBefore(Node refNode)
throws org.w3c.dom.ranges.RangeException,
DOMException
setEndBefore in interface org.w3c.dom.ranges.Rangeorg.w3c.dom.ranges.RangeException
DOMException
public void setStart(Node refNode,
int offset)
throws org.w3c.dom.ranges.RangeException,
DOMException
setStart in interface org.w3c.dom.ranges.Rangeorg.w3c.dom.ranges.RangeException
DOMException
public void setStartAfter(Node refNode)
throws org.w3c.dom.ranges.RangeException,
DOMException
setStartAfter in interface org.w3c.dom.ranges.Rangeorg.w3c.dom.ranges.RangeException
DOMException
public void setStartBefore(Node refNode)
throws org.w3c.dom.ranges.RangeException,
DOMException
setStartBefore in interface org.w3c.dom.ranges.Rangeorg.w3c.dom.ranges.RangeException
DOMException
public void surroundContents(Node newParent)
throws DOMException,
org.w3c.dom.ranges.RangeException
surroundContents in interface org.w3c.dom.ranges.RangeDOMException
org.w3c.dom.ranges.RangeExceptionpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in interface org.w3c.dom.ranges.RangetoString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||