Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jempeg.empeg.emplode.model
Class VirtualFIDPlaylistTreeNode  view VirtualFIDPlaylistTreeNode download VirtualFIDPlaylistTreeNode.java

java.lang.Object
  extended byjavax.swing.tree.DefaultMutableTreeNode
      extended byorg.jempeg.empeg.emplode.model.VirtualFIDPlaylistTreeNode
All Implemented Interfaces:
java.lang.Cloneable, EmpegPlaylistTreeNodeIfc, EmpegTreeNodeIfc, java.util.EventListener, FIDPlaylistTreeNodeIfc, org.jempeg.empeg.emplode.action.FIDTreeNodeChangeListenerIfc, javax.swing.tree.MutableTreeNode, java.io.Serializable, javax.swing.tree.TreeNode
Direct Known Subclasses:
VirtualSearchFIDPlaylistTreeNode, VirtualTagFIDPlaylistTreeNode

public class VirtualFIDPlaylistTreeNode
extends javax.swing.tree.DefaultMutableTreeNode
implements FIDPlaylistTreeNodeIfc

VirtualFIDPlaylistTreeNode is an FIDPlaylistTreeNode that doesn't actually exist on the Empeg.

Version:
$Revision: 1.10 $

Nested Class Summary
 
Nested classes inherited from class javax.swing.tree.DefaultMutableTreeNode
 
Field Summary
private  boolean myHearsEvents
           
private  java.util.Vector myNodes
           
private  int myType
           
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
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
 
Constructor Summary
VirtualFIDPlaylistTreeNode(java.lang.String _name)
          Constructs a new VirtualFIDPlaylistTreeNode that doesn't listen to FIDTreeNodeChangeEvents.
VirtualFIDPlaylistTreeNode(java.lang.String _name, boolean _hearsEvents)
          Constructs a new VirtualFIDPlaylistTreeNode.
 
Method Summary
 void add(org.jempeg.empeg.emptool.AbstractFIDNode _fidNode)
          Adds the given FID Node to this virtual node
 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.
 void clear()
           
 java.lang.Object clone()
          Returns a clone of the node.
 EmpegTableModelIfc createTableModel()
          Creates a TableModel out of the children of this tree node.
 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.
 void fidTreeNodesAdded(org.jempeg.empeg.emplode.action.FIDTreeNodeChangeEvent _event)
          Called when a set of FIDTreeNodes is added.
 void fidTreeNodesModified(org.jempeg.empeg.emplode.action.FIDTreeNodeChangeEvent _event)
          Called when a set of FIDTreeNodes is modified.
 void fidTreeNodesRemoved(org.jempeg.empeg.emplode.action.FIDTreeNodeChangeEvent _event)
          Called when a set of FIDTreeNodes is removed.
 int getFIDIndexOf(FIDTreeNodeIfc _treeNode)
          Returns the index of the given FIDTreeNodeIfc.
 FIDTreeNodeIfc getFIDTreeNodeAt(int _index)
          Returns an FIDTreeNodeIfc at the given index.
 int getSize()
          Returns the size of this FIDPlaylistTreeNodeIfc.
 java.lang.String getTitle()
          Returns the name of this Playlist.
 FIDTreeNodeIfc getTreeNode(org.jempeg.empeg.emptool.AbstractFIDNode _fidNode)
          Returns the FIDTreeNodeIfc that corresponds to the given AbstractFIDNode.
 int getType()
          Returns the type of this EmpegTreeNode.
 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.
 void remove(org.jempeg.empeg.emptool.AbstractFIDNode _fidNode)
          Removes the given FID Node from this virtual node
 void setType(int _type)
          Sets the type of this EmpegTreeNode.
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, 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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.swing.tree.MutableTreeNode
insert, remove, remove, removeFromParent, setParent, setUserObject
 
Methods inherited from interface javax.swing.tree.TreeNode
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf
 

Field Detail

myType

private int myType

myNodes

private java.util.Vector myNodes

myHearsEvents

private boolean myHearsEvents
Constructor Detail

VirtualFIDPlaylistTreeNode

public VirtualFIDPlaylistTreeNode(java.lang.String _name)
Constructs a new VirtualFIDPlaylistTreeNode that doesn't listen to FIDTreeNodeChangeEvents.


VirtualFIDPlaylistTreeNode

public VirtualFIDPlaylistTreeNode(java.lang.String _name,
                                  boolean _hearsEvents)
Constructs a new VirtualFIDPlaylistTreeNode.

Method Detail

getTitle

public java.lang.String getTitle()
Returns the name of this Playlist.

Specified by:
getTitle in interface EmpegTreeNodeIfc

clone

public java.lang.Object clone()
Description copied from class: javax.swing.tree.DefaultMutableTreeNode
Returns a clone of the node. The clone contains a shallow copy of the user object, and does not copy the parent node or the child nodes.


clear

public void clear()

getType

public int getType()
Returns the type of this EmpegTreeNode.

Specified by:
getType 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)
Adds the given FID Node to this virtual node


remove

public void remove(org.jempeg.empeg.emptool.AbstractFIDNode _fidNode)
Removes the given FID Node from this virtual node


getTreeNode

public FIDTreeNodeIfc getTreeNode(org.jempeg.empeg.emptool.AbstractFIDNode _fidNode)
Returns the FIDTreeNodeIfc that corresponds to the given AbstractFIDNode.


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

getFIDTreeNodeAt

public FIDTreeNodeIfc getFIDTreeNodeAt(int _index)
Returns an FIDTreeNodeIfc at the given index.

Specified by:
getFIDTreeNodeAt in interface FIDPlaylistTreeNodeIfc

getFIDIndexOf

public int getFIDIndexOf(FIDTreeNodeIfc _treeNode)
Returns the index of the given FIDTreeNodeIfc.

Specified by:
getFIDIndexOf in interface FIDPlaylistTreeNodeIfc

getSize

public int getSize()
Returns the size of this FIDPlaylistTreeNodeIfc.

Specified by:
getSize in interface FIDPlaylistTreeNodeIfc

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