- java.lang.Object
-
- org.omnifaces.model.tree.AbstractTreeModel<T>
-
- org.omnifaces.model.tree.ListTreeModel<T>
-
- Type Parameters:
T
- The type of the wrapped data of the tree node.
- All Implemented Interfaces:
Serializable
,Iterable<TreeModel<T>>
,TreeModel<T>
public class ListTreeModel<T> extends AbstractTreeModel<T>
- Author:
- Bauke Scholtz
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ListTreeModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Collection<TreeModel<T>>
createChildren()
Returns a newArrayList
.-
Methods inherited from class org.omnifaces.model.tree.AbstractTreeModel
addChild, addChildNode, equals, getChildCount, getChildren, getData, getIndex, getLevel, getNextSibling, getParent, getPreviousSibling, hashCode, isFirst, isLast, isLeaf, isRoot, iterator, remove, setData, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
createChildren
protected Collection<TreeModel<T>> createChildren()
Returns a newArrayList
.- Specified by:
createChildren
in classAbstractTreeModel<T>
- Returns:
- A concrete (and usually empty)
Collection
instance which should hold the tree's children.
-
-