private class UIManager.BundleTreeNode extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ucar.unidata.idv.SavedBundle |
bundle |
private java.util.List<UIManager.BundleTreeNode> |
kids |
private java.lang.String |
name |
Constructor and Description |
---|
BundleTreeNode(java.lang.String name)
This constructor is used to build a node that is considered a
"parent".
|
BundleTreeNode(java.lang.String name,
ucar.unidata.idv.SavedBundle bundle)
Nodes constructed using this constructor can only ever be child
nodes.
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(UIManager.BundleTreeNode child) |
ucar.unidata.idv.SavedBundle |
getBundle() |
java.util.List<UIManager.BundleTreeNode> |
getChildren() |
java.lang.String |
getName() |
private java.lang.String name
private ucar.unidata.idv.SavedBundle bundle
private java.util.List<UIManager.BundleTreeNode> kids
public BundleTreeNode(java.lang.String name)
SavedBundles
. This
was done so that distinguishing between bundles and bundle
subcategories would be easy.name
- The name of this node. For a parent node with
"Toolbar>cat" as the path, the name parameter would
contain only "cat".public BundleTreeNode(java.lang.String name, ucar.unidata.idv.SavedBundle bundle)
name
- The name of the SavedBundle.bundle
- A reference to the SavedBundle.public void addChild(UIManager.BundleTreeNode child)
child
- The node to be added to the current node.public java.util.List<UIManager.BundleTreeNode> getChildren()
public ucar.unidata.idv.SavedBundle getBundle()
public java.lang.String getName()