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

Quick Search    Search Deep

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

java.lang.Object
  extended byjavax.swing.tree.DefaultMutableTreeNode
      extended byorg.jempeg.empeg.emplode.model.BasicEmpegPlaylistTreeNode
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
Direct Known Subclasses:
SearchesPlaylistTreeNode

public class BasicEmpegPlaylistTreeNode
extends javax.swing.tree.DefaultMutableTreeNode
implements EmpegPlaylistTreeNodeIfc

BasicEmpegPlaylistTreeNode is the most simple implementation of EmpegPlaylistTreeNodeIfc (basically nothing :) ). This is used for the root node of the Empeg tree.

Version:
$Revision: 1.6 $

Nested Class Summary
 
Nested classes inherited from class javax.swing.tree.DefaultMutableTreeNode
 
Field Summary
private  java.lang.String myName
           
 
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
BasicEmpegPlaylistTreeNode(java.lang.String _name)
          Constructs a new BasicEmpegPlaylistTreeNode
 
Method Summary
 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.
 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.
 java.lang.String getTitle()
          Returns the name of this EmpegTreeNode.
 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.
 java.lang.String toString()
          Returns a string representation of the node.
 
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
 
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

myName

private java.lang.String myName
Constructor Detail

BasicEmpegPlaylistTreeNode

public BasicEmpegPlaylistTreeNode(java.lang.String _name)
Constructs a new BasicEmpegPlaylistTreeNode

Method Detail

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

Specified by:
getTitle in interface EmpegTreeNodeIfc

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

toString

public java.lang.String toString()
Description copied from class: javax.swing.tree.DefaultMutableTreeNode
Returns a string representation of the node. This implementation returns getUserObject().toString(), or null if there is no user object.