T - The type of the wrapped data of the tree node.public class SortedTreeModel<T> extends AbstractTreeModel<T> implements Comparable<T>
| Constructor and Description |
|---|
SortedTreeModel() |
| Modifier and Type | Method and Description |
|---|---|
TreeModel<T> |
addChild(T data)
An override which throws
IllegalArgumentException when given data is not null and not an
instance of Comparable. |
int |
compareTo(T object) |
protected Collection<TreeModel<T>> |
createChildren() |
addChildNode, equals, getChildCount, getChildren, getData, getIndex, getLevel, getNextSibling, getParent, getPreviousSibling, hashCode, isFirst, isLast, isLeaf, isRoot, iterator, remove, setData, toStringprotected Collection<TreeModel<T>> createChildren()
createChildren in class AbstractTreeModel<T>public TreeModel<T> addChild(T data)
IllegalArgumentException when given data is not null and not an
instance of Comparable.public int compareTo(T object)
compareTo in interface Comparable<T>