MAJ-2
This commit is contained in:
55
controleur/Cheval.java
Normal file
55
controleur/Cheval.java
Normal file
@@ -0,0 +1,55 @@
|
||||
package controleur;
|
||||
|
||||
public class Cheval {
|
||||
private int id, age;
|
||||
private String nom, sexe, robe, type, race, proprietaire, image;
|
||||
public Cheval()
|
||||
{//ADD
|
||||
this.id=this.age=0;
|
||||
this.nom=this.sexe=this.proprietaire=this.robe=this.type=this.image="";
|
||||
}
|
||||
public Cheval (int id, String nom, String sexe, String robe, String type, String race, String proprietaire, int age, String image)
|
||||
{//ALL
|
||||
this.id= id;
|
||||
this.nom = nom;
|
||||
this.sexe = sexe;
|
||||
this.robe = robe;
|
||||
this.type = type;
|
||||
this.race = race;
|
||||
this.proprietaire = proprietaire;
|
||||
this.age = age;
|
||||
this.image = image;
|
||||
}
|
||||
public Cheval (String nom, String sexe, String robe, String type, String race, String proprietaire, int age)
|
||||
{//ADD
|
||||
this.nom = nom;
|
||||
this.sexe = sexe;
|
||||
this.robe = robe;
|
||||
this.type = type;
|
||||
this.race = race;
|
||||
this.proprietaire = proprietaire;
|
||||
this.age = age;
|
||||
}
|
||||
public Cheval (String nom)
|
||||
{//DELETE
|
||||
this.nom = nom;
|
||||
}
|
||||
public int getId() { return id; }
|
||||
public String getNom() { return nom; }
|
||||
public String getSexe() { return sexe; }
|
||||
public String getRobe() { return robe; }
|
||||
public String getType() { return type; }
|
||||
public String getRace() { return race; }
|
||||
public String getProprietaire() { return proprietaire; }
|
||||
public int getAge() { return age; }
|
||||
public String getImage() { return image; }
|
||||
public void setId(int id) { this.id = id; }
|
||||
public void setNom(String nom) { this.nom = nom; }
|
||||
public void setSexe(String sexe) { this.sexe = sexe; }
|
||||
public void setRobe(String robe) { this.robe = robe; }
|
||||
public void setType(String type) { this.type = type; }
|
||||
public void setRace(String race) { this.race = race; }
|
||||
public void setProprietaire(String proprietaire) { this.proprietaire = proprietaire; }
|
||||
public void setAge(int age) { this.age = age; }
|
||||
public void setImage(String image) { this.image = image; }
|
||||
}
|
||||
50
controleur/Cours.java
Normal file
50
controleur/Cours.java
Normal file
@@ -0,0 +1,50 @@
|
||||
package controleur;
|
||||
|
||||
public class Cours
|
||||
{
|
||||
private int idcours;
|
||||
private String datecours, heuredebut, heurefin;
|
||||
public Cours()
|
||||
{
|
||||
this.idcours=0;
|
||||
this.datecours = this.heuredebut=this.heurefin="";
|
||||
}
|
||||
public Cours (int idcours, String datecours, String heuredebut, String heurefin)
|
||||
{
|
||||
this.idcours= idcours;
|
||||
this.datecours = datecours;
|
||||
this.heuredebut = heuredebut;
|
||||
this.heurefin = heurefin;
|
||||
}
|
||||
public Cours ( String datecours, String heuredebut, String heurefin)
|
||||
{
|
||||
this.idcours= 0;
|
||||
this.datecours = datecours;
|
||||
this.heuredebut = heuredebut;
|
||||
this.heurefin = heurefin;
|
||||
}
|
||||
public int getIdCours() {
|
||||
return idcours;
|
||||
}
|
||||
public void setIdCours(int idcours) {
|
||||
this.idcours = idcours;
|
||||
}
|
||||
public String getDateCours() {
|
||||
return datecours;
|
||||
}
|
||||
public void setDateCours(String datecours) {
|
||||
this.datecours = datecours;
|
||||
}
|
||||
public String getHeureDebut() {
|
||||
return heuredebut;
|
||||
}
|
||||
public void setHeureDebut(String heuredebut) {
|
||||
this.heuredebut = heuredebut;
|
||||
}
|
||||
public String getHeureFin() {
|
||||
return heurefin;
|
||||
}
|
||||
public void setHeureFin(String heurefin) {
|
||||
this.heurefin = heurefin;
|
||||
}
|
||||
}
|
||||
66
controleur/Eleve.java
Normal file
66
controleur/Eleve.java
Normal file
@@ -0,0 +1,66 @@
|
||||
package controleur;
|
||||
|
||||
public class Eleve
|
||||
{
|
||||
private int id, privilege, age, galop;
|
||||
private String record, pseudo, prenom, nom, sexe, adresse, mdp, mail, imageeleve;
|
||||
public Eleve() {//ALL
|
||||
this.id=this.privilege=this.age=this.galop=0;
|
||||
this.record=this.pseudo=this.prenom=this.nom=this.sexe=this.adresse=this.mail="";
|
||||
}
|
||||
public Eleve (int id, int privilege, String record, String pseudo, String prenom, String nom, String sexe, int age, String adresse, String mdp, String mail, int galop, String imageeleve)
|
||||
{//ALL
|
||||
this.id= id;
|
||||
this.privilege = privilege;
|
||||
this.record = record;
|
||||
this.pseudo = pseudo;
|
||||
this.prenom = prenom;
|
||||
this.nom = nom;
|
||||
this.sexe = sexe;
|
||||
this.age = age;
|
||||
this.adresse = adresse;
|
||||
this.mdp = mdp;
|
||||
this.mail = mail;
|
||||
this.galop = galop;
|
||||
this.imageeleve = imageeleve;
|
||||
}
|
||||
public Eleve (String prenom, String nom, String sexe, int age, String adresse, String mail, int galop)
|
||||
{//ADD & Modify
|
||||
this.prenom = prenom;
|
||||
this.nom = nom;
|
||||
this.sexe = sexe;
|
||||
this.age = age;
|
||||
this.adresse = adresse;
|
||||
this.mail = mail;
|
||||
this.galop = galop;
|
||||
}
|
||||
public Eleve (String mail) {//DELETE
|
||||
this.mail = mail;
|
||||
}
|
||||
public int getId() { return id; }
|
||||
public int getPrivilege() { return privilege; }
|
||||
public String getRecord() { return record; }
|
||||
public String getPseudo() { return pseudo; }
|
||||
public String getPrenom() { return prenom; }
|
||||
public String getNom() { return nom; }
|
||||
public String getSexe() { return sexe; }
|
||||
public int getAge() { return age; }
|
||||
public String getAdresse() { return adresse; }
|
||||
public String getMdp() { return mdp; }
|
||||
public String getMail() { return mail; }
|
||||
public int getGalop() { return galop; }
|
||||
public String getImageEleve() { return imageeleve; }
|
||||
public void setid(int id) { this.id = id; }
|
||||
public void setPrivilege(int privilege) { this.privilege = privilege; }
|
||||
public void setrecord(String record) { this.record = record; }
|
||||
public void setPseudo(String pseudo) { this.pseudo = pseudo; }
|
||||
public void setPrenom(String prenom) { this.prenom = prenom; }
|
||||
public void setNom(String nom) { this.nom = nom; }
|
||||
public void setSexe(String sexe) { this.sexe = sexe; }
|
||||
public void setAge(int age) { this.age = age; }
|
||||
public void setAdresse(String adresse) { this.adresse = adresse; }
|
||||
public void setMdp(String mdp) { this.mdp = mdp; }
|
||||
public void setMail(String mail) { this.mail = mail; }
|
||||
public void setGalop(int galop) { this.galop = galop; }
|
||||
public void setImageEleve(String imageeleve) { this.imageeleve = imageeleve; }
|
||||
}
|
||||
59
controleur/Formateur.java
Normal file
59
controleur/Formateur.java
Normal file
@@ -0,0 +1,59 @@
|
||||
package controleur;
|
||||
|
||||
public class Formateur
|
||||
{
|
||||
private int idformateur, privilege, age, galop;
|
||||
private String login, prenom, nom, sexe, mail, mdp ;
|
||||
public Formateur()
|
||||
{//ALL
|
||||
this.idformateur=this.privilege=this.age=this.galop=0;
|
||||
this.login=this.prenom=this.nom=this.sexe=this.mail=this.mdp="";
|
||||
}
|
||||
public Formateur (int idformateur, String login, int privilege, String prenom, String nom, int age, int galop, String sexe, String mail, String mdp)
|
||||
{//ALL
|
||||
this.idformateur= idformateur;
|
||||
this.login = login;
|
||||
this.privilege = privilege;
|
||||
this.prenom = prenom;
|
||||
this.nom = nom;
|
||||
this.age = age;
|
||||
this.galop = galop;
|
||||
this.sexe = sexe;
|
||||
this.mail = mail;
|
||||
this.mdp = mdp;
|
||||
}
|
||||
public Formateur(String prenom,String nom, int age, int galop, String sexe, String mail, String mdp)
|
||||
{//ADD
|
||||
this.prenom = prenom;
|
||||
this.nom = nom;
|
||||
this.age = age;
|
||||
this.galop = galop;
|
||||
this.sexe = sexe;
|
||||
this.mail = mail;
|
||||
this.mdp = mdp;
|
||||
}
|
||||
public Formateur(String mail)
|
||||
{//DELETE
|
||||
this.mail = mail;
|
||||
}
|
||||
public int getId() { return idformateur; }
|
||||
public String getLogin() { return login; }
|
||||
public int getPrivilege() { return privilege; }
|
||||
public String getPrenom() { return prenom; }
|
||||
public String getNom() { return nom; }
|
||||
public int getAge() { return age; }
|
||||
public int getGalop() { return galop;}
|
||||
public String getSexe() {return sexe;}
|
||||
public String getMail() { return mail; }
|
||||
public String getMdp() { return mdp; }
|
||||
public void setId(int idformateur) { this.idformateur = idformateur; }
|
||||
public void setLogin(String login) { this.login = login; }
|
||||
public void setPrivilege(int privilege) { this.privilege = privilege; }
|
||||
public void setPrenom(String prenom) { this.prenom = prenom; }
|
||||
public void setNom(String nom) { this.nom = nom; }
|
||||
public void setAge(int age) { this.age = age; }
|
||||
public void setGalop(int galop) {this.galop = galop; }
|
||||
public void setSexe(String sexe) {this.sexe = sexe; }
|
||||
public void setMail(String mail) { this.mail = mail; }
|
||||
public void setMdp(String mdp) { this.mdp = mdp; }
|
||||
}
|
||||
23
controleur/Gestion.java
Normal file
23
controleur/Gestion.java
Normal file
@@ -0,0 +1,23 @@
|
||||
package controleur;
|
||||
|
||||
import vue.Connexion;
|
||||
|
||||
public class Gestion
|
||||
{
|
||||
private static Connexion uneConnexion;
|
||||
public Gestion()
|
||||
{
|
||||
uneConnexion = new Connexion();
|
||||
uneConnexion.rendreVisible(true);
|
||||
}
|
||||
|
||||
public static void rendreVisible(boolean val)
|
||||
{
|
||||
uneConnexion.rendreVisible(val);
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
new Gestion();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user