debut de la fin des changements, modif api et correction de bug

This commit is contained in:
2022-12-02 11:20:58 +01:00
parent 35696d3b14
commit 1fb3e881dc
24 changed files with 529 additions and 256 deletions

View File

@@ -8,9 +8,9 @@ import java.awt.Font;
import java.awt.GridLayout;
import fr.iutfbleau.projetIHM2022FI2.API.Groupe;
import fr.iutfbleau.projetIHM2022FI2.API.TypeGroupe;
import fr.iutfbleau.projetIHM2022FI2.ROOT.Controller.ObservateurChangeGroupe;
import fr.iutfbleau.projetIHM2022FI2.Permanent.Controller.ObservateurChangeGroupe;
import fr.iutfbleau.projetIHM2022FI2.ROOT.Controller.ObservateurModifGroupe;
import fr.iutfbleau.projetIHM2022FI2.ROOT.Model.Model;
import fr.iutfbleau.projetIHM2022FI2.API.Model;
public class FenetreGroupe{
@@ -65,9 +65,11 @@ public class FenetreGroupe{
titre.setFont(new Font(Font.SERIF, Font.BOLD, titre.getFont().getSize()+10));
this.pan.add(titre);
this.pan.add(new JLabel("id= "+String.valueOf(g.getId()),JLabel.CENTER));
this.pan.add(new JLabel("min= "+String.valueOf(g.getMin()),JLabel.CENTER));
this.pan.add(new JLabel("max= "+String.valueOf(g.getMax()),JLabel.CENTER));
this.pan.add(new JLabel(g.getType().name(), JLabel.CENTER));
this.pan.add(new JLabel("min= "+String.valueOf(g.getMin())+"\t || \t max= "+String.valueOf(g.getMax()),JLabel.CENTER));
JButton refresh= new JButton("Resfresh");
refresh.addActionListener(new ObservateurChangeGroupe(m, g));
this.pan.add(refresh);
this.pan.add(new JLabel("Type: "+g.getType().name(), JLabel.CENTER));
this.pan.add(new JLabel("Sous groupe:",JLabel.CENTER));
if(g.getSousGroupes().size()>0){
JPanel sous=new JPanel(new GridLayout(g.getSousGroupes().size(), 1));