org.apache.pivot.wtk.text
Class List
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.List
- All Implemented Interfaces:
- Iterable<Node>, org.apache.pivot.collections.Sequence<Node>
- Direct Known Subclasses:
- BulletedList, NumberedList
public abstract class List
- extends Block
Abstract base class for list elements.
TODO Add indent and item spacing properties.
|
Nested Class Summary |
static class |
List.Item
Element representing a list item. |
| Nested classes/interfaces inherited from interface org.apache.pivot.collections.Sequence |
org.apache.pivot.collections.Sequence.Tree<T> |
|
Constructor Summary |
List()
|
List(List list,
boolean recursive)
|
| Methods inherited from class org.apache.pivot.wtk.text.Element |
add, dumpOffsets, duplicate, get, getBackgroundColor, getCharacterAt, getCharacterCount, getDescendantAt, getElementListeners, getFont, getForegroundColor, getLength, getNodeAt, getPathAt, getRange, indexOf, insertRange, isStrikethrough, isUnderline, iterator, rangeInserted, rangeRemoved, remove, remove, removeRange, setBackgroundColor, setBackgroundColor, setFont, setFont, setForegroundColor, setForegroundColor, setStrikethrough, setUnderline, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
List
public List()
List
public List(List list,
boolean recursive)
insert
public void insert(Node node,
int index)
- Specified by:
insert in interface org.apache.pivot.collections.Sequence<Node>- Overrides:
insert in class Element