-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProfil.java
More file actions
42 lines (35 loc) · 1.38 KB
/
Profil.java
File metadata and controls
42 lines (35 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import javax.swing.ImageIcon;
import java.io.Serializable;
public class Profil implements Serializable
{
private static final long serialVersionUID = 1L;
private String id;
private String nom;
private String description;
private ImageIcon photo;
private String motDePasse;
public Profil(String nom, String description, ImageIcon photo)
{
this.nom = nom;
this.description = description;
this.photo = photo;
}
public Profil(String nom, String description, ImageIcon photo, String motDePasse)
{
this.nom = nom;
this.description = description;
this.photo = photo;
this.motDePasse = motDePasse;
}
// Getters et setters
public String getId() { return id; }
public String getNom() { return nom; }
public String getDescription() { return description; }
public ImageIcon getPhoto() { return photo; }
public String getMotDePasse() { return motDePasse; }
public void setId(String id) { this.id = id; }
public void setNom(String nom) { this.nom = nom; }
public void setDescription(String description) { this.description = description; }
public void setPhoto(ImageIcon photo) { this.photo = photo; }
public void setMotDePasse(String motDePasse) { this.motDePasse = motDePasse; }
}