Subversion Repositories eFlore/Applications.coel

Rev

Rev 64 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 64 Rev 69
Line 11... Line 11...
11
import com.google.gwt.http.client.Response;
11
import com.google.gwt.http.client.Response;
12
import com.google.gwt.json.client.JSONArray;
12
import com.google.gwt.json.client.JSONArray;
13
import com.google.gwt.json.client.JSONParser;
13
import com.google.gwt.json.client.JSONParser;
14
import com.google.gwt.json.client.JSONValue;
14
import com.google.gwt.json.client.JSONValue;
Line 15... Line 15...
15
 
15
 
Line 16... Line 16...
16
public class ListeStructureAsyncDao {
16
public class StructureListeAsyncDao {
17
 
17
 
Line 18... Line 18...
18
	private ListeStructure institutions = null;
18
	private StructureListe institutions = null;
19
	private Rafraichissable rafraichissement = null;
19
	private Rafraichissable rafraichissement = null;
20
	
20
	
Line 21... Line 21...
21
	public ListeStructureAsyncDao(Rafraichissable r) {
21
	public StructureListeAsyncDao(Rafraichissable r) {
22
		rafraichissement = r;
22
		rafraichissement = r;
Line 40... Line 40...
40
 
40
 
41
					// Si la requête est un succès, reception d'un tableau
41
					// Si la requête est un succès, reception d'un tableau
42
					if (responseValue.isArray() != null) {
42
					if (responseValue.isArray() != null) {
43
						final JSONArray reponse = responseValue.isArray();
43
						final JSONArray reponse = responseValue.isArray();
44
						// Transformation du tableau JSON réponse en ListeInstitution
44
						// Transformation du tableau JSON réponse en ListeInstitution
45
						institutions = new ListeStructure(reponse);
45
						institutions = new StructureListe(reponse);
46
						// et on met à jour le demandeur des données
46
						// et on met à jour le demandeur des données
47
						rafraichissement.rafraichir(institutions);
47
						rafraichissement.rafraichir(institutions);
Line 48... Line 48...
48
					}
48
					}