Makefile and src
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user