Class PlayListTreeModel
- java.lang.Object
-
- javax.swing.tree.DefaultTreeModel
-
- com.tagtraum.beatunes.playlisttree.PlayListTreeModel
-
- All Implemented Interfaces:
Serializable
,TreeModel
public class PlayListTreeModel extends DefaultTreeModel
Left panelTreeModel
.- Author:
- Hendrik Schreiber
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PlayListTreeModel.AnalysisQueueUO
static class
PlayListTreeModel.ChartPanelUO
static interface
PlayListTreeModel.ExpandedUO
static interface
PlayListTreeModel.IdentifiableUO
static class
PlayListTreeModel.InspectionUO
static class
PlayListTreeModel.InspectorCategoryUO
static class
PlayListTreeModel.InspectorUO
static class
PlayListTreeModel.PlayListUO
static interface
PlayListTreeModel.UO
-
Field Summary
Fields Modifier and Type Field Description static com.tagtraum.beatunes.playlisttree.PlayListTreeModel.PlayListComparator
PLAYLIST_COMPARATOR
-
Fields inherited from class javax.swing.tree.DefaultTreeModel
asksAllowsChildren, listenerList, root
-
-
Constructor Summary
Constructors Constructor Description PlayListTreeModel(MainWindow mainWindow)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBeatportNode()
void
addPlayList(PlayList playList, PlayList parent)
void
deletePlayList(PlayList playList)
DefaultMutableTreeNode
getAnalysisCategoryNode()
BeaTunes
getApplication()
DefaultMutableTreeNode
getInspectionCategoryNode()
DefaultMutableTreeNode
getLibraryCategoryNode()
DefaultMutableTreeNode
getMusicChartsCategoryNode()
List<PlayList>
getPlayLists()
DefaultMutableTreeNode
getPlaylistsCategoryNode()
DefaultMutableTreeNode
getPlayListTreeNode(PlayList playList)
DefaultMutableTreeNode
getRoot()
void
refreshPlayLists()
void
removeBeatportNode()
void
setInspectors(List<Inspector> inspectors)
void
setPlayLists(List<PlayList> thePlayLists)
Set a new set of playlists.void
showNode(MutableTreeNode categoryNode)
-
Methods inherited from class javax.swing.tree.DefaultTreeModel
addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getTreeModelListeners, insertNodeInto, isLeaf, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot, valueForPathChanged
-
-
-
-
Constructor Detail
-
PlayListTreeModel
public PlayListTreeModel(MainWindow mainWindow)
- Parameters:
mainWindow
- main window
-
-
Method Detail
-
addBeatportNode
public void addBeatportNode()
-
removeBeatportNode
public void removeBeatportNode()
-
showNode
public void showNode(MutableTreeNode categoryNode)
-
getMusicChartsCategoryNode
public DefaultMutableTreeNode getMusicChartsCategoryNode()
-
getAnalysisCategoryNode
public DefaultMutableTreeNode getAnalysisCategoryNode()
-
getInspectionCategoryNode
public DefaultMutableTreeNode getInspectionCategoryNode()
-
getLibraryCategoryNode
public DefaultMutableTreeNode getLibraryCategoryNode()
-
getPlaylistsCategoryNode
public DefaultMutableTreeNode getPlaylistsCategoryNode()
-
getApplication
public BeaTunes getApplication()
-
getPlayListTreeNode
public DefaultMutableTreeNode getPlayListTreeNode(PlayList playList)
-
deletePlayList
public void deletePlayList(PlayList playList)
-
getRoot
public DefaultMutableTreeNode getRoot()
- Specified by:
getRoot
in interfaceTreeModel
- Overrides:
getRoot
in classDefaultTreeModel
-
setPlayLists
public void setPlayLists(List<PlayList> thePlayLists)
Set a new set of playlists. I.e. build the corresponding nodes.- Parameters:
thePlayLists
- playlists
-
refreshPlayLists
public void refreshPlayLists()
-
-