org.argouml.ui.explorer
Class ExplorerTreeNode

java.lang.Object
  extended byjavax.swing.tree.DefaultMutableTreeNode
      extended byorg.argouml.ui.explorer.ExplorerTreeNode
All Implemented Interfaces:
Cloneable, EventListener, MutableTreeNode, PropertyChangeListener, Serializable, TreeNode

public class ExplorerTreeNode
extends DefaultMutableTreeNode
implements PropertyChangeListener

Ensures that explorer tree nodes have a default ordering.

Since:
0.15.2, Created on 27 September 2003, 17:40
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
ExplorerTreeNode(Object userObj, ExplorerTreeModel m)
          Creates a new instance of ExplorerTreeNode.
 
Method Summary
 boolean isLeaf()
           
 void nodeModified(Object node)
           
 void propertyChange(PropertyChangeEvent evt)
           
 void remove()
          cleans up for gc.
 void setModifySet(Set set)
           
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExplorerTreeNode

public ExplorerTreeNode(Object userObj,
                        ExplorerTreeModel m)
Creates a new instance of ExplorerTreeNode.

Parameters:
userObj - the object in the tree
m - the tree model
Method Detail

isLeaf

public boolean isLeaf()
Specified by:
isLeaf in interface TreeNode
See Also:
TreeNode.isLeaf()

setModifySet

public void setModifySet(Set set)
Parameters:
set - the given set

nodeModified

public void nodeModified(Object node)
Parameters:
node - the modified node in the tree

remove

public void remove()
cleans up for gc.


propertyChange

public void propertyChange(PropertyChangeEvent evt)
Specified by:
propertyChange in interface PropertyChangeListener
See Also:
PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Cookbook