Makefile and src

This commit is contained in:
2022-12-08 11:25:00 +01:00
parent 8b7943ef44
commit 8e5e88e08f
99 changed files with 25457 additions and 26 deletions

View File

@@ -11,8 +11,8 @@ import fr.iutfbleau.projetIHM2022FI2.API.Etudiant;
import fr.iutfbleau.projetIHM2022FI2.API.Groupe;
import fr.iutfbleau.projetIHM2022FI2.API.Model;
import fr.iutfbleau.projetIHM2022FI2.API.TypeGroupe;
import fr.iutfbleau.projetIHM2022FI2.MP.AbstractChangementFactoryNP;
import fr.iutfbleau.projetIHM2022FI2.MP.AbstractGroupeFactoryNP;
import fr.iutfbleau.projetIHM2022FI2.MP.AbstractChangementFactoryPersistant;
import fr.iutfbleau.projetIHM2022FI2.MP.AbstractGroupeFactoryPersistant;
import fr.iutfbleau.projetIHM2022FI2.MP.ROOT.View.FenetreChangement;
import fr.iutfbleau.projetIHM2022FI2.MP.ROOT.View.FenetreEtudiant;
import fr.iutfbleau.projetIHM2022FI2.MP.ROOT.View.FenetreGroupe;
@@ -53,7 +53,7 @@ public class ModelRoot implements Model{
this.fenetre.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
this.fenetre.setMinimumSize(this.fenetre.getSize());
Chargement ch=new Chargement(this.fenetre);
this.promo=new AbstractGroupeFactoryNP(this.fenetre);
this.promo=new AbstractGroupeFactoryPersistant(this.fenetre);
ch.dispose();
this.fenetre.setVisible(true);
if(this.promo.getPromotion()==null){
@@ -63,7 +63,7 @@ public class ModelRoot implements Model{
}else{
this.fenGr=new FenetreGroupe(this.promo.getPromotion(), this);
this.fenEtu=new FenetreEtudiant(this.promo.getPromotion(), this);
this.changement=new AbstractChangementFactoryNP(this.promo, this.fenetre);
this.changement=new AbstractChangementFactoryPersistant(this.promo, this.fenetre);
}
this.panGroupe=new JPanel(new GridLayout(1,1));
if(this.promo.getPromotion()!=null){
@@ -304,8 +304,8 @@ public class ModelRoot implements Model{
@Override
public void addPromo(int min, int max, String name, Set<Etudiant> ajout){
Chargement ch=new Chargement(this.fenetre);
this.promo=new AbstractGroupeFactoryNP(name, min, max, this.fenetre);
this.changement=new AbstractChangementFactoryNP(this.promo, this.fenetre);
this.promo=new AbstractGroupeFactoryPersistant(name, min, max, this.fenetre);
this.changement=new AbstractChangementFactoryPersistant(this.promo, this.fenetre);
this.fenetre.setVisible(false);
for(Etudiant e:ajout){
this.addEtudiant(this.promo.getPromotion(), e);