java.lang.Object
org.omnifaces.model.tree.AbstractTreeModel<T>
org.omnifaces.model.tree.SortedTreeModel<T>
- Type Parameters:
T- The type of the wrapped data of the tree node.
- All Implemented Interfaces:
Serializable,Comparable<T>,Iterable<TreeModel<T>>,TreeModel<T>
- Since:
- 1.7
- Author:
- Bauke Scholtz
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAn override which throwsIllegalArgumentExceptionwhen given data is notnulland not an instance ofComparable.intprotected Collection<TreeModel<T>>Returns a newTreeSet.Methods inherited from class org.omnifaces.model.tree.AbstractTreeModel
addChildNode, equals, getChildCount, getChildren, getData, getIndex, getLevel, getNextSibling, getParent, getPreviousSibling, hashCode, isFirst, isLast, isLeaf, isRoot, iterator, remove, setData, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
SortedTreeModel
public SortedTreeModel()
-
-
Method Details
-
createChildren
Returns a newTreeSet.- Specified by:
createChildrenin classAbstractTreeModel<T>- Returns:
- A concrete (and usually empty)
Collectioninstance which should hold the tree's children.
-
addChild
An override which throwsIllegalArgumentExceptionwhen given data is notnulland not an instance ofComparable. In other words, it only acceptsnullor an instance ofComparable. -
compareTo
- Specified by:
compareToin interfaceComparable<T>
-