public class Playlist
extends java.lang.Object
Constructor and Description |
---|
Playlist()
Constructs a PlayList class containing a list for AudioFile.
|
Modifier and Type | Method and Description |
---|---|
void |
addAudioFile(AudioFile audioFile)
Adds an audio file.
|
AudioFile |
getCurrentFile()
Get the file currently selected by index.
|
void |
removeAudioFile(AudioFile audioFile)
Removes an audio file.
|
void |
selectFileByIndex(int index)
Set the index of the selected file to the given index.
|
void |
selectNextFile()
Select next file in list.
|
void |
selectPreviousFile()
Select previous file in list.
|
public Playlist()
public void addAudioFile(AudioFile audioFile)
audioFile
- AudioFile to addpublic void removeAudioFile(AudioFile audioFile)
audioFile
- AudioFile to removepublic void selectNextFile()
public void selectPreviousFile()
public void selectFileByIndex(int index)
index
- index of the file to selectpublic AudioFile getCurrentFile()