|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpivot.wtk.text.Node
pivot.wtk.text.Element
pivot.wtk.text.Block
pivot.wtk.text.Document
public class Document
Node representing the root of an element hierarchy.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface pivot.collections.Sequence |
---|
Sequence.Search, Sequence.Sort, Sequence.Tree |
Constructor Summary | |
---|---|
Document()
|
|
Document(Document document,
boolean recursive)
|
Method Summary | |
---|---|
Node |
duplicate(boolean recursive)
Creates a copy of this node. |
void |
insert(Node node,
int index)
Inserts an item into the sequence at a specific index. |
protected void |
setParent(Element parent)
|
Methods inherited from class pivot.wtk.text.Element |
---|
add, dumpOffsets, get, getCharacterCount, getDescendantAt, getElementListeners, getIndexAt, getLength, getNodeAt, getPathAt, getRange, indexOf, insertRange, iterator, rangeInserted, rangeRemoved, remove, remove, removeRange, update |
Methods inherited from class pivot.wtk.text.Node |
---|
getDocumentOffset, getNodeListeners, getOffset, getParent, replaceRange, setOffset |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Document()
public Document(Document document, boolean recursive)
Method Detail |
---|
protected void setParent(Element parent)
setParent
in class Node
public Node duplicate(boolean recursive)
Node
duplicate
in class Node
public void insert(Node node, int index)
Sequence
insert
in interface Sequence<Node>
insert
in class Element
node
- The item to be added to the sequence.index
- The index at which the item should be inserted. Must be a value between
0 and getLength().
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |