Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 936 Rev 985
Line 2... Line 2...
2
 
2
 
3
import org.tela_botanica.client.Mediateur;
3
import org.tela_botanica.client.Mediateur;
4
import org.tela_botanica.client.interfaces.Rafraichissable;
4
import org.tela_botanica.client.interfaces.Rafraichissable;
5
import org.tela_botanica.client.modeles.Information;
5
import org.tela_botanica.client.modeles.Information;
-
 
6
import org.tela_botanica.client.modeles.collection.CollectionListe;
6
import org.tela_botanica.client.modeles.collection.CollectionListe;
7
import org.tela_botanica.client.modeles.commentaire.CommentaireListe;
7
import org.tela_botanica.client.modeles.personne.PersonneListe;
8
import org.tela_botanica.client.modeles.personne.PersonneListe;
8
import org.tela_botanica.client.modeles.projet.ProjetListe;
9
import org.tela_botanica.client.modeles.projet.ProjetListe;
9
import org.tela_botanica.client.modeles.publication.PublicationListe;
10
import org.tela_botanica.client.modeles.publication.PublicationListe;
Line 35... Line 36...
35
	//+----------------------------------------------------------------------------------------------------------------+
36
	//+----------------------------------------------------------------------------------------------------------------+
36
	//	RAFRAICHISSEMENT
37
	//	RAFRAICHISSEMENT
37
	//+----------------------------------------------------------------------------------------------------------------+
38
	//+----------------------------------------------------------------------------------------------------------------+
Line 38... Line 39...
38
	
39
	
-
 
40
	public void rafraichir(Object nouvellesDonnees) {
-
 
41
		if (nouvellesDonnees instanceof ProjetListe)	{
39
	public void rafraichir(Object nouvellesDonnees) {
42
			mediateur.afficherListeProjets((ProjetListe) nouvellesDonnees);			
40
		if (nouvellesDonnees instanceof StructureListe) {
43
		} else if (nouvellesDonnees instanceof StructureListe) {
41
			mediateur.afficherListeStructures((StructureListe) nouvellesDonnees);
44
			mediateur.afficherListeStructures((StructureListe) nouvellesDonnees);
42
		}  else if (nouvellesDonnees instanceof CollectionListe) {
45
		} else if (nouvellesDonnees instanceof CollectionListe) {
43
			mediateur.afficherListeCollections((CollectionListe) nouvellesDonnees);
-
 
44
		} else if (nouvellesDonnees instanceof PublicationListe) {
-
 
45
			mediateur.afficherListePublication((PublicationListe) nouvellesDonnees);
46
			mediateur.afficherListeCollections((CollectionListe) nouvellesDonnees);
46
		} else if (nouvellesDonnees instanceof PersonneListe) {
47
		} else if (nouvellesDonnees instanceof PersonneListe) {
47
			mediateur.afficherListePersonnes((PersonneListe) nouvellesDonnees);
48
			mediateur.afficherListePersonnes((PersonneListe) nouvellesDonnees);
-
 
49
		} else if (nouvellesDonnees instanceof PublicationListe) {
48
		} else if (nouvellesDonnees instanceof ProjetListe)	{
50
			mediateur.afficherListePublication((PublicationListe) nouvellesDonnees);
49
			GWT.log("reception d'une liste de projets", null);
51
		} else if (nouvellesDonnees instanceof CommentaireListe) {
50
			mediateur.afficherListeProjets((ProjetListe) nouvellesDonnees);			
52
			mediateur.afficherListeCommentaire((CommentaireListe) nouvellesDonnees);
51
		} else if (nouvellesDonnees instanceof Information)	{
53
		} else if (nouvellesDonnees instanceof Information)	{
52
			Information info = (Information) nouvellesDonnees;
54
			Information info = (Information) nouvellesDonnees;
53
			if (info.getType().equals("maj_utilisateur"))	{
55
			if (info.getType().equals("maj_utilisateur"))	{
54
				if (getContenu() != null)	{
56
				if (getContenu() != null)	{