|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--nl.madline.opendp500.JDPPlaylist
Constructor Summary | |
JDPPlaylist(java.lang.String mediaType,
java.lang.String name)
Default constructor. |
Method Summary | |
void |
addFile(java.lang.String filename)
Add a file to the playlist |
java.util.Vector |
getContents()
Return a vector with the contents of the playlist |
java.lang.String[] |
getFiles()
Get an array of String with all current files |
java.lang.String |
getMediaType()
Return the media type of the playlist |
java.lang.String |
getName()
Return the name of the playlist |
boolean |
isEmpty()
Returns true if the playlist is empty |
void |
removeFile(int number)
Remove a file from the playlist by it's number. |
void |
removeFile(java.lang.String filename)
Remove a file from the playlist |
void |
setMediaType(java.lang.String currentMediaType)
Set the current mediaType to a given value |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JDPPlaylist(java.lang.String mediaType, java.lang.String name)
mediaType
- The media-type of this playlist (AUDIO/VIDEO/PICTURE)name
- The name of the playlistMethod Detail |
public void addFile(java.lang.String filename)
filename
- The file to be addedpublic void removeFile(java.lang.String filename)
filename
- The file to be removedpublic java.lang.String[] getFiles()
public boolean isEmpty()
public java.lang.String getName()
public java.lang.String getMediaType()
public void removeFile(int number)
number
- The number of the file that needs to be removedpublic java.util.Vector getContents()
public void setMediaType(java.lang.String currentMediaType)
currentMediaType
- The media type of the playlist
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |