Package org.opensourcephysics.controls
Class XMLTreeNode
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
org.opensourcephysics.controls.XMLTreeNode
- All Implemented Interfaces:
Serializable
,Cloneable
,MutableTreeNode
,TreeNode
This is a DefaultMutableTreeNode for an XML JTree.
- Version:
- 1.0
- Author:
- Douglas Brown
- See Also:
-
Field Summary
FieldsFields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the XMLProperty.boolean
Gets the XMLProperty.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
-
Field Details
-
prop
-
-
Constructor Details
-
XMLTreeNode
Constructs a node with an XMLProperty- Parameters:
property
- the XMLProperty
-
-
Method Details
-
getProperty
Gets the XMLProperty.- Returns:
- the XMLProperty
-
isInspectable
public boolean isInspectable()Gets the XMLProperty.- Returns:
- the XMLProperty
-
toString
This is used by the tree node to get a node label.- Overrides:
toString
in classDefaultMutableTreeNode
- Returns:
- the display name of the node
-