Package edu.wisc.ssec.mcidasv.ui
Class UIManager.BundleTreeNode
java.lang.Object
edu.wisc.ssec.mcidasv.ui.UIManager.BundleTreeNode
- Enclosing class:
UIManager
Represents a SavedBundle as a tree.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SavedBundle
private List
<UIManager.BundleTreeNode> private String
-
Constructor Summary
ConstructorsConstructorDescriptionBundleTreeNode
(String name) This constructor is used to build a node that is considered a "parent".BundleTreeNode
(String name, SavedBundle bundle) Nodes constructed using this constructor can only ever be child nodes. -
Method Summary
-
Field Details
-
name
-
bundle
-
kids
-
-
Constructor Details
-
BundleTreeNode
This constructor is used to build a node that is considered a "parent". These nodes only have child nodes, noSavedBundles
. 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".
-
BundleTreeNode
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 Details
-
addChild
- Parameters:
child
- The node to be added to the current node.
-
getChildren
- Returns:
- Returns all child nodes of this node.
-
getBundle
- Returns:
- Return the SavedBundle associated with this node (if any).
-
getName
- Returns:
- The name of this node.
-