|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.atunes.kernel.modules.repository.model.Album
public class Album
This class represents an album, with it's name, artist, and songs.
| Constructor Summary | |
|---|---|
Album(java.lang.String name)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addSong(AudioFile file)
Adds a song to this album. |
int |
compareTo(Album o)
Comparator. |
boolean |
equals(java.lang.Object o)
|
Artist |
getArtist()
Returns the name of the artist of this album. |
java.util.List<AudioFile> |
getAudioFiles()
Gets the audio files. |
java.util.List<AudioObject> |
getAudioObjects()
Returns a list of songs of this album. |
java.lang.String |
getName()
Returns name of the album. |
javax.swing.ImageIcon |
getPicture(int width,
int heigth)
Returns a picture of this album, with a given size. |
boolean |
hasCoverDownloaded()
Returns true if aTunes has saved cover image. |
int |
hashCode()
|
void |
removeSong(AudioFile file)
Removes a song from this album. |
void |
setArtist(Artist artist)
Sets the name of the artist of this album. |
java.lang.String |
toString()
String representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Album(java.lang.String name)
name - the name| Method Detail |
|---|
public void addSong(AudioFile file)
file - the filepublic int compareTo(Album o)
compareTo in interface java.lang.Comparable<Album>o - the o
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic Artist getArtist()
public java.util.List<AudioFile> getAudioFiles()
public java.util.List<AudioObject> getAudioObjects()
getAudioObjects in interface TreeObjectpublic java.lang.String getName()
public javax.swing.ImageIcon getPicture(int width,
int heigth)
width - the widthheigth - the heigth
public boolean hasCoverDownloaded()
public int hashCode()
hashCode in class java.lang.Objectpublic void removeSong(AudioFile file)
file - the filepublic void setArtist(Artist artist)
artist - the artistpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||