de.grogra.util
Class MutableTree

java.lang.Object
  extended by de.grogra.util.TreeModelSupport
      extended by de.grogra.util.Tree
          extended by 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 Class Summary
 
Nested classes/interfaces inherited from class de.grogra.util.Tree
Tree.Node
 
Field Summary
 
Fields inherited from class de.grogra.util.Tree
root
 
Fields inherited from class de.grogra.util.TreeModelSupport
NODES_CHANGED, NODES_INSERTED, NODES_REMOVED, STRUCTURE_CHANGED
 
Constructor Summary
MutableTree(Tree.Node 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 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, getChild, getChildCount, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener
 

Constructor Detail

MutableTree

public MutableTree(Tree.Node root)
Method Detail

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