java.lang.Object
de.grogra.util.TreeModelSupport
de.grogra.util.Tree
- All Implemented Interfaces:
TreeModel
- Direct Known Subclasses:
MutableTree
-
Nested Class Summary
-
Field Summary
Fields inherited from class de.grogra.util.TreeModelSupport
NODES_CHANGED, NODES_INSERTED, NODES_REMOVED, STRUCTURE_CHANGED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Object
findFirst
(TreeModel tree, Object root, ObjectToBoolean filter) static Object
findMax
(TreeModel tree, Object root, Comparator comparator) static Object
findMax
(TreeModel tree, Object root, Comparator comparator, Object max) int
getChildCount
(Object parent) final int
getIndexOfChild
(Tree.Node child) int
getIndexOfChild
(Object parent, Object child) getRoot()
boolean
hasValidPath
(Tree.Node leaf) boolean
boolean
nodesEqual
(Tree.Node a, Tree.Node b) void
valueForPathChanged
(TreePath path, Object newValue) Methods inherited from class de.grogra.util.TreeModelSupport
addTreeModelListener, allListenersRemoved, clearListeners, fireTreeModelEvent, fireTreeModelEvent, fireTreeModelEvent, fireTreeModelEvent, firstListenerAdded, hasListeners, removeTreeModelListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.swing.tree.TreeModel
addTreeModelListener, removeTreeModelListener
-
Field Details
-
root
-
-
Constructor Details
-
Tree
-
-
Method Details
-
isLeaf
-
getChild
-
getParent
-
getChildCount
- Specified by:
getChildCount
in interfaceTreeModel
-
getIndexOfChild
- Specified by:
getIndexOfChild
in interfaceTreeModel
-
nodesEqual
-
getIndexOfChild
-
getRoot
-
findFirst
-
findMax
-
findMax
-
valueForPathChanged
- Specified by:
valueForPathChanged
in interfaceTreeModel
-
hasValidPath
-