edu.iastate.metnet.model
Class XMLMutableTreeNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by edu.iastate.metnet.model.XMLMutableTreeNode
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

public class XMLMutableTreeNode
extends javax.swing.tree.DefaultMutableTreeNode

Tree node model for XML document

Author:
Jie Li
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
XMLMutableTreeNode()
          Creates a new instance of XMLMutableTreeNode
XMLMutableTreeNode(java.lang.Object userObject)
           
XMLMutableTreeNode(java.lang.Object userObject, boolean allowsChildren)
          constructor of node for user object
 
Method Summary
 java.lang.String toString()
          presentation of the node
 
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, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XMLMutableTreeNode

public XMLMutableTreeNode()
Creates a new instance of XMLMutableTreeNode


XMLMutableTreeNode

public XMLMutableTreeNode(java.lang.Object userObject)
Parameters:
userObject - the user object stored in the model

XMLMutableTreeNode

public XMLMutableTreeNode(java.lang.Object userObject,
                          boolean allowsChildren)
constructor of node for user object

Parameters:
userObject - user object
allowsChildren - if allow children node
Method Detail

toString

public java.lang.String toString()
presentation of the node

Overrides:
toString in class javax.swing.tree.DefaultMutableTreeNode
Returns:
the string representation of the node