java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
org.jempeg.empeg.emplode.model.VirtualEmpegPlaylistTreeNode
- All Implemented Interfaces:
- java.lang.Cloneable, EmpegPlaylistTreeNodeIfc, EmpegTreeNodeIfc, java.util.EventListener, org.jempeg.empeg.emplode.action.FIDTreeNodeChangeListenerIfc, javax.swing.tree.MutableTreeNode, java.io.Serializable, javax.swing.tree.TreeNode
- public class VirtualEmpegPlaylistTreeNode
- extends javax.swing.tree.DefaultMutableTreeNode
- implements EmpegPlaylistTreeNodeIfc
VirtualEmpegPlaylistTreeNode is the root of a virtual playlist.
- Version:
- $Revision: 1.6 $
| Fields inherited from interface org.jempeg.empeg.emplode.model.EmpegTreeNodeIfc |
TYPE_ALBUM, TYPE_ALBUMS, TYPE_ARTIST, TYPE_ARTISTS, TYPE_FOLDER, TYPE_GENRE, TYPE_GENRES, TYPE_PLAYLIST, TYPE_ROOT, TYPE_TUNE, TYPE_TUNES, TYPE_YEAR, TYPE_YEARS |
| Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString |
myType
private int myType
mySubType
private int mySubType
myTagName
private java.lang.String myTagName
myTagToChild
private java.util.Hashtable myTagToChild
myAllowsPlaylists
private boolean myAllowsPlaylists
VirtualEmpegPlaylistTreeNode
public VirtualEmpegPlaylistTreeNode(java.lang.String _name,
java.lang.String _tagName,
int _type,
int _subType,
boolean _allowsPlaylists)
- Constructs a new VirtualEmpegPlaylistTreeNode.
getType
public int getType()
- Returns the type of this EmpegTreeNode.
- Specified by:
getType in interface EmpegTreeNodeIfc
getTitle
public java.lang.String getTitle()
- Returns the name of this Playlist.
- Specified by:
getTitle in interface EmpegTreeNodeIfc
setType
public void setType(int _type)
- Sets the type of this EmpegTreeNode.
add
public void add(org.jempeg.empeg.emptool.AbstractFIDNode _fidNode)
- Looks for a child node with the same tag
as the given FID Node. If one does
not exist, then a new child node is added.
remove
public void remove(org.jempeg.empeg.emptool.AbstractFIDNode _fidNode)
- Removes the given FID Node from the corresponding virtal tree node
add
public void add(org.jempeg.empeg.emplode.action.FIDTreeNodeChangeListenerIfc _changeListener,
org.jempeg.empeg.emplode.action.ConfirmationListenerIfc _confirmationListener,
EmpegTreeNodeIfc _childNode)
- Attempt to add the given child node.
- Specified by:
add in interface EmpegPlaylistTreeNodeIfc
delete
public void delete(org.jempeg.empeg.emplode.action.FIDTreeNodeChangeListenerIfc _changeListener,
org.jempeg.empeg.emplode.action.ConfirmationListenerIfc _confirmationListener,
EmpegTreeNodeIfc _childNode)
- Attempt to delete the given child node.
- Specified by:
delete in interface EmpegPlaylistTreeNodeIfc
move
public void move(org.jempeg.empeg.emplode.action.FIDTreeNodeChangeListenerIfc _changeListener,
org.jempeg.empeg.emplode.action.ConfirmationListenerIfc _confirmationListener,
EmpegTreeNodeIfc _childNode)
- Attempt to move the given child node into this node.
- Specified by:
move in interface EmpegPlaylistTreeNodeIfc
createTableModel
public EmpegTableModelIfc createTableModel()
- Creates a TableModel out of the children of
this tree node.
- Specified by:
createTableModel in interface EmpegPlaylistTreeNodeIfc
fidTreeNodesAdded
public void fidTreeNodesAdded(org.jempeg.empeg.emplode.action.FIDTreeNodeChangeEvent _event)
- Called when a set of FIDTreeNodes is added.
- Specified by:
fidTreeNodesAdded in interface org.jempeg.empeg.emplode.action.FIDTreeNodeChangeListenerIfc
fidTreeNodesModified
public void fidTreeNodesModified(org.jempeg.empeg.emplode.action.FIDTreeNodeChangeEvent _event)
- Called when a set of FIDTreeNodes is modified.
- Specified by:
fidTreeNodesModified in interface org.jempeg.empeg.emplode.action.FIDTreeNodeChangeListenerIfc
fidTreeNodesRemoved
public void fidTreeNodesRemoved(org.jempeg.empeg.emplode.action.FIDTreeNodeChangeEvent _event)
- Called when a set of FIDTreeNodes is removed.
- Specified by:
fidTreeNodesRemoved in interface org.jempeg.empeg.emplode.action.FIDTreeNodeChangeListenerIfc