Artist bugfix
Artist gebugfixt om overeen te komen met de informatie over de artiest. Wat er op neerkomt dat er een background String is toegevoegd.
This commit is contained in:
+13
-1
@@ -11,12 +11,14 @@ public class Artist implements Serializable{
|
|||||||
private String genre;
|
private String genre;
|
||||||
private ImageIcon image;
|
private ImageIcon image;
|
||||||
private String description;
|
private String description;
|
||||||
|
private String background;
|
||||||
|
|
||||||
public Artist(String name, String genre, String image, String description)
|
public Artist(String name, String genre, String image, String description, String background)
|
||||||
{
|
{
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.genre = genre;
|
this.genre = genre;
|
||||||
this.description = description;
|
this.description = description;
|
||||||
|
this.background = background;
|
||||||
|
|
||||||
if ( !image.equals("null")) {
|
if ( !image.equals("null")) {
|
||||||
this.image = new ImageIcon(image);
|
this.image = new ImageIcon(image);
|
||||||
@@ -43,6 +45,11 @@ public class Artist implements Serializable{
|
|||||||
return this.description;
|
return this.description;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getBackground()
|
||||||
|
{
|
||||||
|
return this.background;
|
||||||
|
}
|
||||||
|
|
||||||
public void setName(String name)
|
public void setName(String name)
|
||||||
{
|
{
|
||||||
this.name = name;
|
this.name = name;
|
||||||
@@ -67,4 +74,9 @@ public class Artist implements Serializable{
|
|||||||
{
|
{
|
||||||
this.description = description;
|
this.description = description;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setBackground(String background)
|
||||||
|
{
|
||||||
|
this.background = background;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user