Package ucar.unidata.ui
Class XmlTree.XmlTreeNode
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
ucar.unidata.ui.XmlTree.XmlTreeNode
- All Implemented Interfaces:
Serializable
,Cloneable
,MutableTreeNode
,TreeNode
- Direct Known Subclasses:
XmlTree.XlinkTreeNode
- Enclosing class:
XmlTree
Class XmlTreeNode
- Version:
- %I%, %G%
- Author:
- Unidata development team
- See Also:
-
Field Summary
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
-
Constructor Summary
ConstructorsConstructorDescriptionXmlTreeNode
(Element node, String name) ctorXmlTreeNode
(Element node, String name, String baseLocation) ctor -
Method Summary
Modifier and TypeMethodDescriptionFind the xml file location.Get the nodeMethods 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, toString
-
Constructor Details
-
XmlTreeNode
ctor- Parameters:
node
- The xml nodename
- The label to use
-
XmlTreeNode
ctor- Parameters:
node
- The xml nodename
- The label to usebaseLocation
- Where the xml came from. May be null.
-
-
Method Details
-
getXmlNode
Get the node- Returns:
- The xml node
-
getBaseLocation
Find the xml file location. Recurse up the tree if needed.- Returns:
- Where the xml came from where I came from
-