|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Playlist
Playlist.
This interface defines method that a playlist should implement.
A playlist provides a collection of item to play and a cursor to know
which item is playing.
Method Summary | |
---|---|
void |
addItemAt(PlaylistItem pli,
int pos)
Adds item at a given position in the playlist. |
void |
appendItem(PlaylistItem pli)
Append item at the end of the playlist. |
void |
begin()
Moves the cursor at the begining of the Playlist. |
java.util.Collection |
getAllItems()
Returns a collection of playlist items. |
PlaylistItem |
getCursor()
Returns item matching to the cursor. |
int |
getIndex(PlaylistItem pli)
Returns index of playlist item. |
PlaylistItem |
getItemAt(int pos)
Returns item at a given position from the playlist. |
int |
getPlaylistSize()
Returns then number of items in the playlist. |
int |
getSelectedIndex()
Returns item matching to the cursor. |
boolean |
isModified()
Checks the modification flag |
boolean |
load(java.lang.String filename)
Loads playlist. |
void |
nextCursor()
Computes cursor position (next). |
void |
previousCursor()
Computes cursor position (previous). |
void |
removeAllItems()
Removes all items in the playlist. |
void |
removeItem(PlaylistItem pli)
Searchs and removes item from the playlist. |
void |
removeItemAt(int pos)
Removes item at a given position from the playlist. |
boolean |
save(java.lang.String filename)
Saves playlist. |
void |
setCursor(int index)
|
boolean |
setModified(boolean set)
Set the modification flag for the playlist |
void |
shuffle()
Randomly re-arranges the playlist. |
void |
sortItems(int sortmode)
Sorts items of the playlist. |
Method Detail |
---|
boolean load(java.lang.String filename)
boolean save(java.lang.String filename)
void addItemAt(PlaylistItem pli, int pos)
void removeItem(PlaylistItem pli)
void removeItemAt(int pos)
void removeAllItems()
void appendItem(PlaylistItem pli)
void sortItems(int sortmode)
PlaylistItem getItemAt(int pos)
java.util.Collection getAllItems()
int getPlaylistSize()
void shuffle()
PlaylistItem getCursor()
void begin()
int getSelectedIndex()
int getIndex(PlaylistItem pli)
void nextCursor()
void previousCursor()
boolean setModified(boolean set)
boolean isModified()
void setCursor(int index)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |