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

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.TrackNode
All Implemented Interfaces:
NavigationNode, Serializable, Cloneable, MutableTreeNode, TreeNode

public final class TrackNode
extends AbstractTreeNode

This class represents TRACKS in the navigation tree.

Copyright (c) 1999-2007 Melloware, Inc.

Version:
4.0
Author:
Emil A. Lefkof III
See Also:
Track, 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
TrackNode(NavigationNode aParent, Track aModel)
          Constructs a TrackNode for the given parent and track.
 
Method Summary
 Icon getIcon(boolean sel)
          Returns this node's icon, ignores the selection.
 String getName()
          Returns this node's name, the identifier of the associated track.
 Track getTrack()
          Returns this node's associated Track instance.
 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

TrackNode

public TrackNode(NavigationNode aParent,
                 Track aModel)
Constructs a TrackNode for the given parent and track.

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

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 track.

Specified by:
getName in interface NavigationNode
Specified by:
getName in class AbstractTreeNode
Returns:
this node's name

getTrack

public Track getTrack()
Returns this node's associated Track instance.

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

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.