org.argouml.ui.explorer
Class ExplorerTreeNode

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

public class ExplorerTreeNode
extends DefaultMutableTreeNode

Ensures that explorer tree nodes have a default ordering.

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

Nested Class Summary
 
Nested classes inherited from class javax.swing.tree.DefaultMutableTreeNode
 
Field Summary
private  boolean expanded
           
private  ExplorerTreeModel model
           
private  Set modifySet
           
private  boolean pending
           
 
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
(package private)  boolean getPending()
           
 boolean isLeaf()
           
 void nodeModified(Object node)
           
 void remove()
          cleans up for gc.
 void setModifySet(Set set)
           
(package private)  void setPending(boolean value)
           
 
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
 

Field Detail

model

private ExplorerTreeModel model

expanded

private boolean expanded

pending

private boolean pending

modifySet

private Set modifySet
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()
See Also:
TreeNode.isLeaf()

getPending

boolean getPending()

setPending

void setPending(boolean value)

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.



ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook