private class UIManager.BundleTreeNode extends Object
Modifier and Type | Field and Description |
---|---|
private SavedBundle |
bundle |
private List<UIManager.BundleTreeNode> |
kids |
private String |
name |
Constructor and Description |
---|
BundleTreeNode(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.
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(UIManager.BundleTreeNode child) |
SavedBundle |
getBundle() |
List<UIManager.BundleTreeNode> |
getChildren() |
String |
getName() |
private SavedBundle bundle
private List<UIManager.BundleTreeNode> kids
public BundleTreeNode(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(String name, 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 List<UIManager.BundleTreeNode> getChildren()
public SavedBundle getBundle()