|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public boolean load(java.lang.String filename)
public boolean save(java.lang.String filename)
public void addItemAt(PlaylistItem pli, int pos)
public void removeItem(PlaylistItem pli)
public void removeItemAt(int pos)
public void removeAllItems()
public void appendItem(PlaylistItem pli)
public void sortItems(int sortmode)
public PlaylistItem getItemAt(int pos)
public java.util.Collection getAllItems()
public int getPlaylistSize()
public void shuffle()
public PlaylistItem getCursor()
public void begin()
public int getSelectedIndex()
public int getIndex(PlaylistItem pli)
public void nextCursor()
public void previousCursor()
public boolean setModified(boolean set)
public boolean isModified()
public void setCursor(int index)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |