com.melloware.jukes.gui.view.node
Class RootNode
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
com.melloware.jukes.gui.view.node.AbstractTreeNode
com.melloware.jukes.gui.view.node.RootNode
- All Implemented Interfaces:
- NavigationNode, Serializable, Cloneable, MutableTreeNode, TreeNode
public final class RootNode
- extends AbstractTreeNode
Describes the root node in the Jukes navigation tree.
Copyright (c) 1999-2007 Melloware, Inc.
- Version:
- 4.0
- Author:
- Emil A. Lefkof III
- See Also:
- Serialized Form
|
Constructor Summary |
RootNode(Catalog aCatalog)
Creates a root node for the specified catalog. |
|
Method Summary |
Catalog |
getCatalog()
Returns this node's associated Catalog instance. |
Icon |
getIcon(boolean sel)
Returns this node's icon. |
String |
getName()
Returns this node's name. |
void |
loadChildren()
Loads all the artists in the collection sorted by name ascending. |
| Methods inherited from class com.melloware.jukes.gui.view.node.AbstractTreeNode |
add, children, delete, equals, getChildAt, getChildCount, getFont, getFontColor, getMainFrame, getMainModule, getModel, getNodeIcon, getSettings, getUserObject, hashCode, setFont, setFontColor, setSettings, toString |
| Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
breadthFirstEnumeration, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildBefore, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject |
RootNode
public RootNode(Catalog aCatalog)
- Creates a root node for the specified catalog.
- Parameters:
aCatalog - the associated catalog
getCatalog
public Catalog getCatalog()
- Returns this node's associated Catalog instance.
- Returns:
- this node's associated Description instance.
- See Also:
NavigationNode.getModel()
getIcon
public Icon getIcon(boolean sel)
- Returns this node's icon. Since the root node will be hidden
by the tree, we can return
null.
- Returns:
- null
getName
public String getName()
- Returns this node's name. Since the root node will be hidden
by the tree, we can return
null.
- Specified by:
getName in interface NavigationNode- Specified by:
getName in class AbstractTreeNode
- Returns:
- null
loadChildren
public void loadChildren()
- Loads all the artists in the collection sorted by name ascending.
- Specified by:
loadChildren in class AbstractTreeNode
Copyright © 1999-2010 Melloware Inc. All Rights Reserved.