Package org.apache.pivot.wtk.text
Class TextSpan
- java.lang.Object
-
- org.apache.pivot.wtk.text.Node
-
- org.apache.pivot.wtk.text.Element
-
- org.apache.pivot.wtk.text.TextSpan
-
-
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 int
add(java.lang.String text)
TextSpan
duplicate(boolean recursive)
Creates a copy of this node.TextSpan
getRange(int offset, int characterCount)
Returns a range from the node.void
insert(Node node, int index)
Inserts an item into the sequence at a specific index.-
Methods inherited from class org.apache.pivot.wtk.text.Element
add, get, getBackgroundColor, getCharacterAt, getCharacterCount, getCharacters, getDescendantAt, getElementListeners, getFont, getForegroundColor, getLength, getNodeAt, getPathAt, 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, setParent, setUserData
-
-
-
-
Constructor Detail
-
TextSpan
public TextSpan()
-
TextSpan
public TextSpan(TextSpan span, boolean recursive)
-
TextSpan
public TextSpan(java.lang.String text)
-
-
Method Detail
-
add
public int add(java.lang.String text)
-
insert
public void insert(Node node, int index)
Description copied from interface:Sequence
Inserts an item into the sequence at a specific index.
-
duplicate
public TextSpan duplicate(boolean recursive)
Description copied from class:Node
Creates a copy of this node.
-
-