Subversion Repositories eFlore/Applications.del

Rev

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

Rev 392 Rev 939
Line 1... Line 1...
1
package org.tela_botanica.del.client.services.rest.async;
1
package org.tela_botanica.del.client.services.rest.async;
Line 2... Line 2...
2
 
2
 
Line 3... Line -...
3
import org.tela_botanica.del.client.modeles.ObservationServiceResultat;
-
 
4
 
-
 
5
import com.google.gwt.http.client.Request;
-
 
6
import com.google.gwt.http.client.RequestCallback;
3
import org.tela_botanica.del.client.modeles.ObservationServiceResultat;
7
import com.google.gwt.http.client.Response;
-
 
Line 8... Line 4...
8
import com.google.gwt.json.client.JSONParser;
4
 
9
import com.google.gwt.user.client.Window;
-
 
10
 
-
 
11
public abstract class ObservationsCallback implements RequestCallback {
-
 
12
 
-
 
Line 13... Line 5...
13
	public ObservationsCallback() {
5
import com.google.gwt.json.client.JSONParser;
14
 
-
 
15
	}
-
 
16
 
-
 
17
	@Override
-
 
18
	public void onResponseReceived(Request request, Response response) {
-
 
19
		ObservationServiceResultat observationsRecues = convertirReponseVersListeObservation(response);
-
 
20
		surObservationsRecues(observationsRecues);
-
 
21
	}
-
 
22
 
-
 
23
	@Override
-
 
24
	public void onError(Request request, Throwable exception) {
-
 
25
		Window.alert(exception.getMessage());
-
 
26
	}
6
 
27
 
7
public abstract class ObservationsCallback extends PHPCallback<ObservationServiceResultat> {
28
	public abstract void surObservationsRecues(ObservationServiceResultat observationsRecues);
-
 
29
 
8
 
Line 30... Line 9...
30
	private ObservationServiceResultat convertirReponseVersListeObservation(Response reponse) {
9
	@Override