com.melloware.jukes.gui.view.node
Class ArtistNode
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
com.melloware.jukes.gui.view.node.AbstractTreeNode
com.melloware.jukes.gui.view.node.ArtistNode
- All Implemented Interfaces:
- NavigationNode, java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode
public final class ArtistNode
- extends AbstractTreeNode
This class represents ARTISTS in the navigation tree.
Copyright (c) 1999-2007 Melloware, Inc.
- Version:
- 4.0
- Author:
- Emil A. Lefkof III
- See Also:
Artist,
Serialized Form
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, userObject |
|
Method Summary |
Artist |
getArtist()
Returns this node's associated Artist instance. |
javax.swing.Icon |
getIcon(boolean sel)
Returns this node's icon, ignores the selection. |
java.lang.String |
getName()
Returns this node's name, the identifier of the associated artist. |
void |
loadChildren()
Loads the node's child objects. |
| 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 |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.swing.tree.TreeNode |
getAllowsChildren, getIndex, getParent, isLeaf |
ArtistNode
public ArtistNode(NavigationNode aParent,
Artist aModel)
- Constructs a
ArtistNode for the given parent and artist.
- Parameters:
aParent - this node's parentaModel - the associated model, an instance of Artist
getArtist
public Artist getArtist()
- Returns this node's associated Artist instance.
- Returns:
- this node's associated Artist instance.
- See Also:
NavigationNode.getModel()
getIcon
public javax.swing.Icon getIcon(boolean sel)
- Returns this node's icon, ignores the selection.
The icons is requested from a global resource repository.
- Returns:
- this node's icon.
getName
public java.lang.String getName()
- Returns this node's name, the identifier of the associated artist.
- Specified by:
getName in interface NavigationNode- Specified by:
getName in class AbstractTreeNode
- Returns:
- this node's name
loadChildren
public void loadChildren()
- Description copied from class:
AbstractTreeNode
- Loads the node's child objects. This is used for lazy loading and each
subclass should implement this to retrieve its children.
- Specified by:
loadChildren in class AbstractTreeNode
Copyright © 1999-2009 Melloware Inc. All Rights Reserved.