|
||||||||||
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. |
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. |
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 |
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 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 indexpublic int getCurrentPlayListIndex()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |