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

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.DiscNode
All Implemented Interfaces:
NavigationNode, java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

public final class DiscNode
extends AbstractTreeNode

This class represents ALBUMS in the navigation tree.

Copyright (c) 1999-2007 Melloware, Inc.

Version:
4.0
Author:
Emil A. Lefkof III
See Also:
Disc, 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
DiscNode(NavigationNode aParent, Disc aModel)
          Constructs a DiscNode for the given parent and disc.
 
Method Summary
 Disc getDisc()
          Returns this node's associated Disc 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 disc.
 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

DiscNode

public DiscNode(NavigationNode aParent,
                Disc aModel)
Constructs a DiscNode for the given parent and disc.

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

getDisc

public Disc getDisc()
Returns this node's associated Disc instance.

Returns:
this node's associated Disc 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 disc.

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