|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<AudioObject>
net.sourceforge.atunes.kernel.modules.playlist.PlayList
public class PlayList
This class represents a play list.
Field Summary |
---|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
PlayList()
Default Constructor. |
|
PlayList(java.util.List<AudioObject> files)
Constructor. |
|
PlayList(PlayList anotherPlayList)
Instantiates a new play list. |
Method Summary | |
---|---|
void |
clear()
Clear play list. |
AudioObject |
getCurrentAudioObject()
Return current audio object. |
int |
getCurrentAudioObjectIndex()
Gets the index of the next file. |
java.lang.String |
getLength()
Returns play list length in string format. |
java.lang.String |
getName()
Gets the name. |
AudioObject |
getNextAudioObjectToPlay()
Returns the next file to play. |
int |
getNumberOfAudioFiles()
Returns number of audio files in play list. |
int |
getNumberOfPodcastFeedEntries()
Returns number of podcast feed entries in play list. |
int |
getNumberOfRadios()
Returns number of radios in play list. |
AudioObject |
getPreviousAudioObjectToPlay()
Return the previous file played. |
int |
getRandomPosition()
Returns a random position in playlist. |
AudioObject |
remove(int index)
Removes a song. |
boolean |
removeAll(java.util.Collection<?> c)
Removes a list of songs. |
void |
setCurrentAudioObject(int newCurrentAudioObject)
Sets the index of the next file. |
void |
setName(java.lang.String name)
Sets the name. |
void |
setSongs(java.util.List<AudioObject> songs)
Sets a list of songs to this playlist. |
Methods inherited from class java.util.ArrayList |
---|
add, add, addAll, addAll, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, retainAll, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, retainAll, subList |
Constructor Detail |
---|
public PlayList()
public PlayList(java.util.List<AudioObject> files)
files
- the filespublic PlayList(PlayList anotherPlayList)
anotherPlayList
- the another play listMethod Detail |
---|
public void clear()
clear
in interface java.util.Collection<AudioObject>
clear
in interface java.util.List<AudioObject>
clear
in class java.util.ArrayList<AudioObject>
public AudioObject getCurrentAudioObject()
public java.lang.String getLength()
public java.lang.String getName()
public int getCurrentAudioObjectIndex()
public AudioObject getNextAudioObjectToPlay()
public int getNumberOfAudioFiles()
public int getNumberOfPodcastFeedEntries()
public int getNumberOfRadios()
public AudioObject getPreviousAudioObjectToPlay()
public int getRandomPosition()
public AudioObject remove(int index)
remove
in interface java.util.List<AudioObject>
remove
in class java.util.ArrayList<AudioObject>
index
- the index
public boolean removeAll(java.util.Collection<?> c)
removeAll
in interface java.util.Collection<AudioObject>
removeAll
in interface java.util.List<AudioObject>
removeAll
in class java.util.AbstractCollection<AudioObject>
c
- the c
public void setName(java.lang.String name)
name
- the name to setpublic void setCurrentAudioObject(int newCurrentAudioObject)
newCurrentAudioObject
- the new current audio objectpublic void setSongs(java.util.List<AudioObject> songs)
songs
- the songs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |