edu.wisc.ssec.mcidasv.ui
Class UIManager.BundleTreeNode
java.lang.Object
edu.wisc.ssec.mcidasv.ui.UIManager.BundleTreeNode
- Enclosing class:
- UIManager
private class UIManager.BundleTreeNode
- extends Object
Represents a SavedBundle as a tree.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
private String name
bundle
private SavedBundle bundle
kids
private List<UIManager.BundleTreeNode> kids
UIManager.BundleTreeNode
public UIManager.BundleTreeNode(String name)
- This constructor is used to build a node that is considered a
"parent." These nodes only have child nodes, no SavedBundles. This
was done so that distinguishing between bundles and bundle
subcategories would be easy.
- Parameters:
name
- The name of this node. For a parent node with
"Toolbar>cat" as the path, the name parameter would contain
only "cat."
UIManager.BundleTreeNode
public UIManager.BundleTreeNode(String name,
SavedBundle bundle)
- Nodes constructed using this constructor can only ever be child
nodes.
- Parameters:
name
- The name of the SavedBundle.bundle
- A reference to the SavedBundle.
addChild
public void addChild(UIManager.BundleTreeNode child)
- Parameters:
child
- The node to be added to the current node.
getChildren
public List<UIManager.BundleTreeNode> getChildren()
- Returns:
- Returns all child nodes of this node.
getBundle
public SavedBundle getBundle()
- Returns:
- Return the SavedBundle associated with this node (if any).
getName
public String getName()
- Returns:
- The name of this node.