|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.annotation.agschema.graphics.vtree.TreeMutationSupport
Convenience class that maintains a set of listeners and notifies them of the appropriate event. No order guarantees are made on the order in which the listeners are messaged.
| Constructor Summary | |
TreeMutationSupport(javax.swing.tree.TreeNode root)
Creates a new instance of TreeMutationSupport |
|
| Method Summary | |
void |
addListener(TreeMutationListener l)
|
void |
fireChildAdded(javax.swing.tree.MutableTreeNode parent,
int childIndex)
Notifies the listeners of the childAdded event |
void |
fireChildRemoved(javax.swing.tree.MutableTreeNode parent,
javax.swing.tree.MutableTreeNode child,
int oldChildIndex)
Notifies the listeners of the childRemoved event |
void |
fireNodeObjectChanged(javax.swing.tree.MutableTreeNode node,
java.lang.Object oldUserObject)
Notifies the listeners of the nodeObjectChanged event |
void |
fireSubtreeDamaged(javax.swing.tree.MutableTreeNode subtreeRoot)
Notifies the listeners of the subtreeDamaged event |
javax.swing.tree.TreeNode |
getRoot()
Convenience method to get the root |
void |
propertyChange(java.beans.PropertyChangeEvent evt)
|
void |
removeListener(TreeMutationListener l)
The listener to remove |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TreeMutationSupport(javax.swing.tree.TreeNode root)
| Method Detail |
public javax.swing.tree.TreeNode getRoot()
public void addListener(TreeMutationListener l)
public void removeListener(TreeMutationListener l)
l - the listener to remove
public void fireChildAdded(javax.swing.tree.MutableTreeNode parent,
int childIndex)
public void fireChildRemoved(javax.swing.tree.MutableTreeNode parent,
javax.swing.tree.MutableTreeNode child,
int oldChildIndex)
public void fireNodeObjectChanged(javax.swing.tree.MutableTreeNode node,
java.lang.Object oldUserObject)
public void fireSubtreeDamaged(javax.swing.tree.MutableTreeNode subtreeRoot)
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||