Package org.apache.pivot.wtk.text
Class Document
- java.lang.Object
-
- org.apache.pivot.wtk.text.Node
-
- org.apache.pivot.wtk.text.Element
-
- org.apache.pivot.wtk.text.Block
-
- org.apache.pivot.wtk.text.Document
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.pivot.collections.Sequence
Sequence.Tree<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Document
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 org.apache.pivot.wtk.text.Block
getBlockListeners, getHorizontalAlignment, setHorizontalAlignment
-
Methods inherited from class org.apache.pivot.wtk.text.Element
add, get, getBackgroundColor, getCharacterAt, getCharacterCount, getCharacters, getDescendantAt, getElementListeners, getFont, getForegroundColor, getLength, getNodeAt, getPathAt, getRange, getText, indexOf, insertRange, isStrikethrough, isUnderline, iterator, rangeInserted, rangeRemoved, remove, remove, removeRange, setBackgroundColor, setBackgroundColor, setFont, setFont, setFont, setForegroundColor, setForegroundColor, setStrikethrough, setUnderline, update
-
Methods inherited from class org.apache.pivot.wtk.text.Node
getDocumentOffset, getDocumentSpan, getNodeListeners, getOffset, getParagraph, getParent, getUserData, nodeInserted, nodesRemoved, replaceRange, setOffset, setUserData
-
-
-
-
Constructor Detail
-
Document
public Document()
-
Document
public Document(Document document, boolean recursive)
-
-
Method Detail
-
setParent
@UnsupportedOperation protected void setParent(Element parent)
-
duplicate
public Document duplicate(boolean recursive)
Description copied from class:Node
Creates a copy of this node.
-
-