Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 989 Rev 1293
Line 8... Line 8...
8
import com.google.gwt.http.client.Request;
8
import com.google.gwt.http.client.Request;
9
import com.google.gwt.http.client.RequestBuilder;
9
import com.google.gwt.http.client.RequestBuilder;
10
import com.google.gwt.http.client.RequestCallback;
10
import com.google.gwt.http.client.RequestCallback;
11
import com.google.gwt.http.client.RequestException;
11
import com.google.gwt.http.client.RequestException;
12
import com.google.gwt.http.client.Response;
12
import com.google.gwt.http.client.Response;
13
import com.google.gwt.http.client.URL;
-
 
14
import com.google.gwt.json.client.JSONArray;
13
import com.google.gwt.json.client.JSONArray;
15
import com.google.gwt.json.client.JSONParser;
14
import com.google.gwt.json.client.JSONParser;
16
import com.google.gwt.json.client.JSONString;
-
 
17
import com.google.gwt.json.client.JSONValue;
15
import com.google.gwt.json.client.JSONValue;
18
import com.google.gwt.user.client.Window;
-
 
Line 19... Line 16...
19
 
16
 
Line 20... Line 17...
20
public class ListeDateObservationAsynchroneDAO {
17
public class ListeDateObservationAsynchroneDAO {
21
	
18
	
Line 52... Line 49...
52
	
49
	
Line 53... Line 50...
53
		try {
50
		try {
Line -... Line 51...
-
 
51
			
54
			
52
			rb.sendRequest(null, new RequestCallback() {
55
			rb.sendRequest(null, new RequestCallback() {
53
 
Line 56... Line 54...
56
 
54
				@Override
Line -... Line 55...
-
 
55
				public void onError(final Request request, final Throwable exception) {
57
				public void onError(final Request request, final Throwable exception) {
56
					// TODO Auto-generated method stub
58
					// TODO Auto-generated method stub
57
					
Line 59... Line 58...
59
					
58
				}
Line 60... Line 59...
60
				}
59
 
Line 61... Line 60...
61
 
60
				@Override
Line 62... Line -...
62
				public void onResponseReceived(final Request request,
-
 
63
						final Response response) {
61
				public void onResponseReceived(final Request request,
64
					
-
 
65
					final ListeDate lDateObs;
-
 
66
										
62
						final Response response) {
67
					final JSONValue responseValue = JSONParser.parse(response.getText());
-
 
68
					
-
 
69
					JSONArray reponse = responseValue.isArray();
-
 
70
 
-
 
71
		
63
					
72
					// si c'est un tableau
-
 
73
					if ((reponse) != null) {
64
					final ListeDate lDateObs;
74
						
65
										
75
						lDateObs = new ListeDate(reponse);
66
					final JSONValue responseValue = JSONParser.parse(response.getText());
76
						
67