|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.atunes.kernel.handlers.MultiplePlaylistHandler
public class MultiplePlaylistHandler
The Class MultiplePlaylistHandler.
Method Summary | |
---|---|
void |
addListOfPlayLists(ListOfPlayLists list)
Adds a playlist. |
boolean |
checkIfPlayListsContainsAudioObjects(java.util.List<AudioFile> audioObjects)
Check if any of audio objects are in any of the playlists. |
void |
deletePlayList(int index)
Deletes play list referred by index. |
PlayList |
getCurrentPlayList()
|
int |
getCurrentPlayListIndex()
Gets the current play list index. |
static MultiplePlaylistHandler |
getInstance()
Gets the single instance of MultiplePlaylistHandler. |
ListOfPlayLists |
getListOfPlayLists()
Gets the list of play lists. |
void |
newPlayList(java.util.List<AudioObject> audioObjects)
Called to create a new play list with given audio objects. |
void |
newPlayList(java.lang.String nameOfNewPlayList,
java.util.List<AudioObject> audioObjects)
Called to create a new play list with given audio objects. |
boolean |
removeSongsFromOtherPlayLists(java.util.List<AudioFile> audioFiles)
Removes songs from other playlists than current one. |
void |
renamePlayList(int index,
java.lang.String newName)
Renames a play list. |
void |
setCurrentPlayList(PlayList playList)
|
protected static void |
setPlayList(PlayList playList)
Sets the play list. |
void |
switchToPlaylist(int index)
Called when switching play list at tabbed pane. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static MultiplePlaylistHandler getInstance()
public void addListOfPlayLists(ListOfPlayLists list)
list
- the listpublic boolean checkIfPlayListsContainsAudioObjects(java.util.List<AudioFile> audioObjects)
audioObjects
- the audio objects
public void deletePlayList(int index)
index
- the indexpublic ListOfPlayLists getListOfPlayLists()
public void newPlayList(java.util.List<AudioObject> audioObjects)
audioObjects
- the audio objectspublic void newPlayList(java.lang.String nameOfNewPlayList, java.util.List<AudioObject> audioObjects)
nameOfNewPlayList
- the name of the new play list as shown in play list tabaudioObjects
- the audio objects to add to the new play listpublic boolean removeSongsFromOtherPlayLists(java.util.List<AudioFile> audioFiles)
audioFiles
- the audio files
public void renamePlayList(int index, java.lang.String newName)
index
- the indexnewName
- the new namepublic void switchToPlaylist(int index)
index
- the indexprotected static void setPlayList(PlayList playList)
playList
- the new play listpublic int getCurrentPlayListIndex()
public PlayList getCurrentPlayList()
public void setCurrentPlayList(PlayList playList)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |