|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javazoom.jlGui.playlist.BasePlaylist
BasePlaylist. This class implements Playlist interface using a Vector.
Field Summary | |
protected int |
_cursorPos
|
protected java.util.Vector |
_playlist
|
Constructor Summary | |
BasePlaylist()
Constructor. |
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 top of the playlist. |
java.util.Collection |
getAllItems()
Returns a collection of playlist items. |
PlaylistItem |
getCursor()
Returns item matching to the cursor. |
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 selected index. |
boolean |
load(java.lang.String filename)
Loads playlist as M3U format. |
void |
nextCursor()
Computes cursor position (next). |
void |
previousCursor()
Computes cursor position (previous). |
void |
removeAllItems()
Removes all items from 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 |
shuffle()
Shuffles items in the playlist randomly |
void |
sortItems(int sortmode)
Sorts items of the playlist. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Vector _playlist
protected int _cursorPos
Constructor Detail |
public BasePlaylist()
Method Detail |
public boolean load(java.lang.String filename)
load
in interface Playlist
public boolean save(java.lang.String filename)
save
in interface Playlist
public void addItemAt(PlaylistItem pli, int pos)
addItemAt
in interface Playlist
public void removeItem(PlaylistItem pli)
removeItem
in interface Playlist
public void removeItemAt(int pos)
removeItemAt
in interface Playlist
public void removeAllItems()
removeAllItems
in interface Playlist
public void appendItem(PlaylistItem pli)
appendItem
in interface Playlist
public void sortItems(int sortmode)
sortItems
in interface Playlist
public void shuffle()
shuffle
in interface Playlist
public void begin()
begin
in interface Playlist
public PlaylistItem getItemAt(int pos)
getItemAt
in interface Playlist
public java.util.Collection getAllItems()
getAllItems
in interface Playlist
public int getPlaylistSize()
getPlaylistSize
in interface Playlist
public PlaylistItem getCursor()
getCursor
in interface Playlist
public void nextCursor()
nextCursor
in interface Playlist
public void previousCursor()
previousCursor
in interface Playlist
public int getSelectedIndex()
getSelectedIndex
in interface Playlist
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |