edu.wisc.ssec.mcidasv.ui
Class UIManager.BundleTreeNode

java.lang.Object
  extended by edu.wisc.ssec.mcidasv.ui.UIManager.BundleTreeNode
Enclosing class:
UIManager

private class UIManager.BundleTreeNode
extends Object

Represents a SavedBundle as a tree.


Field Summary
private  SavedBundle bundle
           
private  List<UIManager.BundleTreeNode> kids
           
private  String name
           
 
Constructor Summary
UIManager.BundleTreeNode(String name)
          This constructor is used to build a node that is considered a "parent."
UIManager.BundleTreeNode(String name, SavedBundle bundle)
          Nodes constructed using this constructor can only ever be child nodes.
 
Method Summary
 void addChild(UIManager.BundleTreeNode child)
           
 SavedBundle getBundle()
           
 List<UIManager.BundleTreeNode> getChildren()
           
 String getName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private String name

bundle

private SavedBundle bundle

kids

private List<UIManager.BundleTreeNode> kids
Constructor Detail

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.
Method Detail

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.