com.melloware.jukes.gui.view.node
Class ArtistNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by com.melloware.jukes.gui.view.node.AbstractTreeNode
          extended by com.melloware.jukes.gui.view.node.ArtistNode
All Implemented Interfaces:
NavigationNode, Serializable, Cloneable, MutableTreeNode, 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

Field Summary
 
Fields inherited from class com.melloware.jukes.gui.view.node.AbstractTreeNode
BASEFONT, childrenLoaded, font, fontColor, loadingChildren, model, parent, settings
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, userObject
 
Constructor Summary
ArtistNode(NavigationNode aParent, Artist aModel)
          Constructs a ArtistNode for the given parent and artist.
 
Method Summary
 Artist getArtist()
          Returns this node's associated Artist instance.
 Icon getIcon(boolean sel)
          Returns this node's icon, ignores the selection.
 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
 

Constructor Detail

ArtistNode

public ArtistNode(NavigationNode aParent,
                  Artist aModel)
Constructs a ArtistNode for the given parent and artist.

Parameters:
aParent - this node's parent
aModel - the associated model, an instance of Artist
Method Detail

getArtist

public Artist getArtist()
Returns this node's associated Artist instance.

Returns:
this node's associated Artist instance.
See Also:
NavigationNode.getModel()

getIcon

public 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 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-2010 Melloware Inc. All Rights Reserved.