Subversion Repositories eFlore/Applications.coel

Rev

Rev 663 | Rev 675 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 663 Rev 673
Line 554... Line 554...
554
 
554
 
555
	public void afficherListePersonnes(PersonneListe personnesACharger)	{
555
	public void afficherListePersonnes(PersonneListe personnesACharger)	{
556
		if (!(panneauCentre.getContenu() instanceof PersonneVue))	{
556
		if (!(panneauCentre.getContenu() instanceof PersonneVue))	{
557
			panneauCentre.removeAll();
557
			panneauCentre.removeAll();
-
 
558
			panneauCentre.add(new PersonneVue(this));
558
			panneauCentre.add(new PersonneVue(this));
559
			panneauCentre.setId(ComposantId.PANNEAU_PERSONNE_LISTES);
Line 559... Line 560...
559
		}	
560
		}	
560
		
561
		
Line 653... Line 654...
653
	//+----------------------------------------------------------------------------------------------------------------+
654
	//+----------------------------------------------------------------------------------------------------------------+
654
	//												GESTION DES PUBLICATIONS
655
	//												GESTION DES PUBLICATIONS
655
	//+----------------------------------------------------------------------------------------------------------------+
656
	//+----------------------------------------------------------------------------------------------------------------+
Line 656... Line 657...
656
 
657
 
-
 
658
	public void afficherListePublication(PublicationListe nouvelleDonnees) {
657
	public void afficherListePublication(PublicationListe nouvelleDonnees) {
659
		
658
		if (!(panneauCentre.getContenu() instanceof PersonneVue))	{
660
		if (!(panneauCentre.getContenu() instanceof PublicationVue))	{
-
 
661
			panneauCentre.removeAll();
-
 
662
			PublicationVue publicationVue = new PublicationVue(this) ;
659
			panneauCentre.removeAll();
663
			panneauCentre.setId(ComposantId.PANNEAU_PUBLICATION_LISTE);
-
 
664
			panneauCentre.add(publicationVue);
660
			panneauCentre.add(new PublicationVue(this));
665
			panneauCentre.layout(true);
Line 661... Line 666...
661
		}	
666
		}	
662
		
667
		
Line 663... Line 668...
663
		panneauCentre.getContenu().rafraichir(nouvelleDonnees);	
668
		panneauCentre.getContenu().rafraichir(nouvelleDonnees);	
664
	}
669
	}
665
 
670
 
Line 666... Line 671...
666
	public void clicListePublication(Publication publication) {
671
	public void clicListePublication(Publication publication) {
667
		panneauCentre.rafraichir(publication);	
672
		panneauCentre.getContenu().rafraichir(publication);	
668
	}
673
	}
669
 
674
 
670
	public void clicAjouterPublication() {
-
 
671
		panneauCentre.removeAll();
675
	public void clicAjouterPublication() {
672
		PublicationForm publicationForm = new PublicationForm();
676
		panneauCentre.removeAll();
Line 673... Line 677...
673
		panneauCentre.add(publicationForm);
677
		PublicationForm publicationForm = new PublicationForm();
674
		panneauCentre.setId(ComposantId.PANNEAU_FORM_PUBLICATION);
678
		panneauCentre.add(publicationForm);
Line 691... Line 695...
691
	
695
	
692
	public void clicSupprimerPublication(final List<Publication> publicationListe) {
696
	public void clicSupprimerPublication(final List<Publication> publicationListe) {
693
		if (publicationListe.size() <= 0) {
697
		if (publicationListe.size() <= 0) {
694
			MessageBox.alert("Attention", "Vous devez sélectionner une publication", null); 
698
			MessageBox.alert("Attention", "Vous devez sélectionner une publication", null); 
695
		} else {
699
		} else {
696
			String message = "Voulez-vous vraiment supprimer ces publication ?";
700
			String message = "Voulez-vous vraiment supprimer ces publications ?";
697
			if(publicationListe.size() == 1) {
701
			if(publicationListe.size() == 1) {
698
				message = "Voulez-vous vraiment supprimer cette publication ?";
702
				message = "Voulez-vous vraiment supprimer cette publication ?";
Line 699... Line 703...
699
			}
703
			}