de.grogra.util
Class MutableTree
java.lang.Object
de.grogra.util.TreeModelSupport
de.grogra.util.Tree
de.grogra.util.MutableTree
- All Implemented Interfaces:
- Disposable, MutableTreeModel, javax.swing.tree.TreeModel
- Direct Known Subclasses:
- MappedTree, PropertyEditorTree, UITreePipeline
public class MutableTree
- extends Tree
- implements MutableTreeModel
Nested classes/interfaces inherited from class de.grogra.util.Tree |
Tree.Node |
Fields inherited from class de.grogra.util.Tree |
root |
Method Summary |
void |
dispose()
|
void |
insert(java.lang.Object parent,
int index,
java.lang.Object child,
java.lang.Object constraints)
|
void |
remove(java.lang.Object parent,
int index)
|
void |
remove(java.lang.Object parent,
int index,
int count)
|
void |
setRoot(java.lang.Object root)
|
void |
valueForPathChanged(javax.swing.tree.TreePath path,
java.lang.Object newValue)
|
Methods inherited from class de.grogra.util.Tree |
findFirst, findMax, findMax, getChild, getChildCount, getIndexOfChild, getIndexOfChild, getParent, getRoot, hasValidPath, isLeaf, nodesEqual |
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, getChild, getChildCount, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener |
MutableTree
public MutableTree(Tree.Node root)
dispose
public void dispose()
- Specified by:
dispose
in interface Disposable
insert
public void insert(java.lang.Object parent,
int index,
java.lang.Object child,
java.lang.Object constraints)
- Specified by:
insert
in interface MutableTreeModel
remove
public void remove(java.lang.Object parent,
int index)
- Specified by:
remove
in interface MutableTreeModel
remove
public void remove(java.lang.Object parent,
int index,
int count)
setRoot
public void setRoot(java.lang.Object root)
- Specified by:
setRoot
in interface MutableTreeModel
valueForPathChanged
public void valueForPathChanged(javax.swing.tree.TreePath path,
java.lang.Object newValue)
- Specified by:
valueForPathChanged
in interface javax.swing.tree.TreeModel
- Overrides:
valueForPathChanged
in class Tree