org.opensourcephysics.controls
Class XMLTreeNode

java.lang.Object
  extended byjavax.swing.tree.DefaultMutableTreeNode
      extended byorg.opensourcephysics.controls.XMLTreeNode
All Implemented Interfaces:
java.lang.Cloneable, javax.swing.tree.MutableTreeNode, java.io.Serializable, javax.swing.tree.TreeNode

public class XMLTreeNode
extends javax.swing.tree.DefaultMutableTreeNode

This is a DefaultMutableTreeNode for an XML JTree.

See Also:
Serialized Form

Field Summary
protected  XMLProperty prop
           
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
XMLTreeNode(XMLProperty property)
          Contructs a node with an XMLProperty
 
Method Summary
 XMLProperty getProperty()
          Gets the XMLProperty.
 boolean isInspectable()
          Gets the XMLProperty.
 java.lang.String toString()
          This is used by the tree node to get a node label.
 
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
 

Field Detail

prop

protected XMLProperty prop
Constructor Detail

XMLTreeNode

public XMLTreeNode(XMLProperty property)
Contructs a node with an XMLProperty

Parameters:
property - the XMLProperty
Method Detail

getProperty

public XMLProperty getProperty()
Gets the XMLProperty.

Returns:
the XMLProperty

isInspectable

public boolean isInspectable()
Gets the XMLProperty.

Returns:
the XMLProperty

toString

public java.lang.String toString()
This is used by the tree node to get a node label.

Returns:
the display name of the node