Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 1166 Rev 1329
Line 3... Line 3...
3
import org.tela_botanica.client.Mediateur;
3
import org.tela_botanica.client.Mediateur;
4
import org.tela_botanica.client.RegistreId;
4
import org.tela_botanica.client.RegistreId;
5
import org.tela_botanica.client.interfaces.ListePaginable;
5
import org.tela_botanica.client.interfaces.ListePaginable;
6
import org.tela_botanica.client.interfaces.Rafraichissable;
6
import org.tela_botanica.client.interfaces.Rafraichissable;
7
import org.tela_botanica.client.modeles.aDonneeListe;
7
import org.tela_botanica.client.modeles.aDonneeListe;
-
 
8
import org.tela_botanica.client.util.UtilString;
Line 8... Line 9...
8
 
9
 
9
import com.extjs.gxt.ui.client.Registry;
10
import com.extjs.gxt.ui.client.Registry;
10
import com.google.gwt.i18n.client.Dictionary;
11
import com.google.gwt.i18n.client.Dictionary;
11
import com.google.gwt.json.client.JSONArray;
12
import com.google.gwt.json.client.JSONArray;
Line 51... Line 52...
51
	}
52
	}
Line 52... Line 53...
52
	
53
	
53
	private void initialiserCommentaireListe(JSONArray ListeDeCommentaires) {
54
	private void initialiserCommentaireListe(JSONArray ListeDeCommentaires) {
54
		boolean chargerCollectionACommentaire = true;
55
		boolean chargerCollectionACommentaire = true;
-
 
56
		final int taillemax = ListeDeCommentaires.size();
55
		final int taillemax = ListeDeCommentaires.size();
57
		
56
		for (int i = 0; i < taillemax; i++) {
58
		for (int i = 0; i < taillemax; i++) {
57
			JSONObject commentaireCourant = ListeDeCommentaires.get(i).isObject() ;
59
			JSONObject commentaireCourant = ListeDeCommentaires.get(i).isObject() ;
58
			if (commentaireCourant != null)	{
60
			if (commentaireCourant != null)	{
-
 
61
				Commentaire commentaire = new Commentaire(commentaireCourant, chargerCollectionACommentaire);
-
 
62
				
-
 
63
				if (!UtilString.isEmpty(commentaire.getCollectionACommentaire().getId())) {
-
 
64
					this.put(commentaire.getCollectionACommentaire().getId(), commentaire);
-
 
65
				}
59
				Commentaire commentaire = new Commentaire(commentaireCourant, chargerCollectionACommentaire);
66
				else {
-
 
67
					this.put(commentaire.getId(), commentaire);
60
				this.put(commentaire.getId(), commentaire);
68
				}
61
			}
69
			}
62
		}
70
		}
Line 63... Line 71...
63
	}
71
	}