|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.qtunes.player.spi.PlayerPlaylist
public class PlayerPlaylist
A Simple Playlist that has a manually managed list of tracks
| Method Summary | |
|---|---|
void |
add(Track track)
Add the specified Track to the Playlist. |
void |
add(Track track,
int index)
Add the specified Track to the Playlist. |
void |
addAll(Playlist playlist)
Add the tracks specified in this Playlist |
void |
addAll(Playlist playlist,
int index)
Add the specified tracks to this Playlist at the specified point |
void |
clear()
Clear the Playlist |
java.lang.String |
getName()
Return the name of the Playlist |
int |
getRevision()
Get the revision number of the Playlist. |
java.util.List<Track> |
getTracks()
Get the list of tracks in this Playlist |
int |
getUniqueID()
Get a unique ID for this playlist which should never change. |
void |
mergeAll(Playlist playlist)
Add the specified tracks to this Playlist, but only if they're not duplicates. |
void |
mergeAll(Playlist playlist,
int index)
Add the specified tracks to this Playlist at the specified point, but only if they're not duplicates |
Track |
remove(int index)
Remove the Track at the specified position in the Playlist |
void |
removeAll(java.util.BitSet bitset)
Remove tracks at the specified indices from this Playlist |
void |
removeAll(Playlist playlist)
Remove all tracks from the specified Playlist from this Playlist |
boolean |
removeTrack(Track track)
Remove all occurances of the specified Track from the Playlist |
void |
setName(java.lang.String name)
Set the name of the Playlist, as returned by Playlist.getName() (optional operation) |
int |
size()
Get the number of tracks in this Paylist |
Playlist |
sort(java.lang.String key,
java.lang.String filter)
Get a new Playlist based on the current one, but sorted and filtered as specified. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public java.lang.String getName()
Playlist
getName in interface Playlistpublic void setName(java.lang.String name)
PlaylistPlaylist.getName() (optional operation)
setName in interface Playlistpublic int getUniqueID()
Playlist
getUniqueID in interface Playlistpublic int getRevision()
Playlist
getRevision in interface Playlistpublic void addAll(Playlist playlist)
addAll in interface ManualPlaylistplaylist - the tracks to addpublic void mergeAll(Playlist playlist)
mergeAll in interface ManualPlaylistplaylist - the tracks to add
public void addAll(Playlist playlist,
int index)
addAll in interface ManualPlaylistplaylist - the tracks to addindex - the insertion position in the list
public void mergeAll(Playlist playlist,
int index)
mergeAll in interface ManualPlaylistplaylist - the tracks to addindex - the insertion position in the listpublic void add(Track track)
add in interface ManualPlaylisttrack - the Track to add
public void add(Track track,
int index)
add in interface ManualPlaylisttrack - the Track to addindex - the insertion position in the listpublic void clear()
ManualPlaylist
clear in interface ManualPlaylistpublic Track remove(int index)
ManualPlaylist
remove in interface ManualPlaylistpublic boolean removeTrack(Track track)
ManualPlaylist
removeTrack in interface ManualPlaylistpublic void removeAll(Playlist playlist)
ManualPlaylist
removeAll in interface ManualPlaylistpublic void removeAll(java.util.BitSet bitset)
ManualPlaylist
removeAll in interface ManualPlaylistpublic java.util.List<Track> getTracks()
Playlist
getTracks in interface Playlist
public Playlist sort(java.lang.String key,
java.lang.String filter)
Playlist
sort in interface Playlistkey - the field to sort by, eg "Title", "Artist", or null for no sortingfilter - the text to filter on, or null for no filteringpublic int size()
Playlist
size in interface Playlist
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||