T
- The type of the wrapped data of the tree node.public class ListTreeModel<T> extends AbstractTreeModel<T>
TreeModel
which holds the tree children in an ArrayList
.Constructor and Description |
---|
ListTreeModel() |
Modifier and Type | Method and Description |
---|---|
protected java.util.Collection<TreeModel<T>> |
createChildren()
Returns a new
ArrayList . |
addChild, addChildNode, equals, getChildCount, getChildren, getData, getIndex, getLevel, getNextSibling, getParent, getPreviousSibling, hashCode, isFirst, isLast, isLeaf, isRoot, iterator, remove, setData, toString
protected java.util.Collection<TreeModel<T>> createChildren()
ArrayList
.createChildren
in class AbstractTreeModel<T>
Collection
instance which should hold the tree's children.