|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.axelwernicke.mypod.Playlist
This class represents a playlist within myPod. A playlist is a vector of clip oid's plus some further information like a name, the total playtime...
| Constructor Summary | |
Playlist()
Creates a new instance of Playlist |
|
Playlist(java.lang.String _name)
Creates a new instance of Playlist |
|
Playlist(java.lang.String name,
java.util.Vector oids)
Creates a new playlist from the name given, and adds clips to it |
|
| Method Summary | |
void |
addClip(java.lang.Long oid)
Adds a clip to the playlist and corrects the total time. |
void |
addClips(java.util.Vector oids)
Adds a clip to the playlist and corrects the total time. |
boolean |
containsClip(java.lang.Long oid)
tue, if the playlist contains the clip specified by the oid. |
java.util.Vector |
getAllClips()
Gets all clips from the playlist. |
java.lang.Long |
getClipAt(int index)
gets the oid for a clip from this playlist. |
java.util.Vector |
getList()
Getter for property list. |
java.lang.String |
getName()
gets the name of a playlist |
int |
getTotalClips()
gets the total count of clips in this playlist. |
long |
getTotalFilesize()
Getter for property totalFilesize. |
int |
getTotalTime()
gets the total playtime for the playlist. |
boolean |
isAutoplaylist()
true, if the current playlist is of type AutoPlaylist. |
boolean |
isIPodSync()
Gets the sync to iPod flag for this playlist |
void |
remove(java.lang.Long oid)
Removes an item from the playlist, and corrects the total time of the playlist. |
void |
remove(java.util.Vector oids)
Removes clips from the playlist |
void |
replaceClips(Playlist srcPlaylist)
|
void |
setIPodSync(boolean value)
Sets playlists iPod sync flag. |
void |
setList(java.util.Vector list)
Setter for property list. |
void |
setName(java.lang.String _name)
sets the name of the playlist. |
void |
setTotalFilesize(long totalFilesize)
Setter for property totalFilesize. |
void |
setTotalTime(int totalTime)
Setter for property totalTime. |
java.lang.String |
toString()
creates a string representation of a playlist. |
void |
validateTotalFilesize()
Recalculates the total filesize of the clips in the playlist |
void |
validateTotalTime()
Recalculates the total time of the playlist |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Playlist()
public Playlist(java.lang.String _name)
_name - name of the new playlist
public Playlist(java.lang.String name,
java.util.Vector oids)
name - of the new playlistoids - list of clips to put into the new playlist| Method Detail |
public void remove(java.util.Vector oids)
oids - of the clips to remove from the playlistpublic void remove(java.lang.Long oid)
oid - of the item to removepublic void setName(java.lang.String _name)
_name - the new name of the playlistpublic java.lang.String getName()
public java.lang.String toString()
public void setTotalTime(int totalTime)
totalTime - New value of property totalTime.public int getTotalTime()
public int getTotalClips()
public boolean containsClip(java.lang.Long oid)
oid - clip to search for in the playlist
public void addClip(java.lang.Long oid)
oid - oid of the clip to addpublic void addClips(java.util.Vector oids)
oids - of the clips to addpublic java.lang.Long getClipAt(int index)
index - position of the clip
public boolean isAutoplaylist()
public void setIPodSync(boolean value)
value - true to enable synchronization to iPodpublic boolean isIPodSync()
public java.util.Vector getAllClips()
public java.util.Vector getList()
public void setList(java.util.Vector list)
list - New value of property list.public void validateTotalTime()
public void validateTotalFilesize()
public long getTotalFilesize()
public void setTotalFilesize(long totalFilesize)
totalFilesize - New value of property totalFilesize.public void replaceClips(Playlist srcPlaylist)
srcPlaylist -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||