|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.atunes.kernel.handlers.PlayListHandler
public class PlayListHandler
The Class PlayListHandler.
Method Summary | |
---|---|
void |
addAlbumsMostPlayed(int n)
Gets n albums most played and adds to play list. |
void |
addArtistsMostPlayed(int n)
Gets n artists most played and adds to play list. |
void |
addRandomSongs(int n)
Gets a number of random songs and adds to play list. |
void |
addSongsMostPlayed(int n)
Gets n songs most played and adds to play list. |
void |
addToPlayList(java.util.List<? extends AudioObject> audioObjects)
Adds audio objects to play list. |
void |
addUnplayedSongs(int n)
Adds n unplayed songs to playlist. |
void |
applicationFinish()
Called by kernel when application is finishing. |
void |
clear()
Method of PlayListEventListener. |
void |
clearList()
Removes all songs from play list. |
void |
editTags()
Edit tags of selected songs on play list. |
static PlayListHandler |
getInstance()
Method to access singleton instance. |
java.lang.Runnable |
getReadPlayListsRunnable()
Gets the read play lists runnable. |
java.lang.Runnable |
getStartToPlayRunnable()
Starts playing current song. |
void |
loadPlaylist()
Loads play list from a file. |
void |
moveDown(int[] rows)
Move rows of play list down. |
void |
moveToBottom(int[] rows)
Move rows to bottom of play list. |
void |
moveToTop(int[] rows)
Move rows to top of play list. |
void |
moveUp(int[] rows)
Move rows of play list up. |
void |
persistPlayList()
|
void |
playNow(AudioObject song)
Plays song passed to argument. |
void |
removeSongs(int[] rows)
Removes songs from play list. |
void |
savePlaylist()
Saves current play list to a file. |
void |
selectedAudioObjectChanged(AudioObject audioObject)
Method of PlayListEventListener. |
void |
setFilter(java.lang.String filter)
Applies filter to play list. |
void |
setPlayLists()
Retrieves stored play list and loads it. |
void |
shuffle()
Shuffle. |
void |
sortPlayList(java.util.Comparator<AudioObject> comp)
Sorts play list with a given comparator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static PlayListHandler getInstance()
public void addAlbumsMostPlayed(int n)
n
- the npublic void addArtistsMostPlayed(int n)
n
- the npublic void addRandomSongs(int n)
n
- the npublic void addSongsMostPlayed(int n)
n
- the npublic void addUnplayedSongs(int n)
n
- the npublic void addToPlayList(java.util.List<? extends AudioObject> audioObjects)
audioObjects
- the audio objectspublic void clear()
clear
in interface PlayListEventListener
public void clearList()
public void editTags()
public void applicationFinish()
applicationFinish
in interface ApplicationFinishListener
public void persistPlayList()
public java.lang.Runnable getReadPlayListsRunnable()
public void setPlayLists()
public void loadPlaylist()
public void moveDown(int[] rows)
rows
- the rowspublic void moveToBottom(int[] rows)
rows
- the rowspublic void moveToTop(int[] rows)
rows
- the rowspublic void moveUp(int[] rows)
rows
- the rowspublic void playNow(AudioObject song)
song
- the songpublic void removeSongs(int[] rows)
rows
- the rowspublic void savePlaylist()
public void selectedAudioObjectChanged(AudioObject audioObject)
selectedAudioObjectChanged
in interface PlayListEventListener
audioObject
- the audio objectpublic void setFilter(java.lang.String filter)
filter
- the filterpublic void shuffle()
public void sortPlayList(java.util.Comparator<AudioObject> comp)
comp
- the comppublic java.lang.Runnable getStartToPlayRunnable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |