Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 54 Rev 347
Line 31... Line 31...
31
	}
31
	}
Line 32... Line 32...
32
 
32
 
33
 
33
 
34
 
34
 
35
	/**
35
	/**
36
	 * Recherche Image repartition associee a un nom 
36
	 * Recherche Image  associee a un nom 
37
	 * @param r
37
	 * @param r
Line 59... Line 59...
59
						Response response) {
59
						Response response) {
Line 60... Line 60...
60
					
60
					
61
					JSONValue responseValue = JSONParser.parse(response.getText());
61
					JSONValue responseValue = JSONParser.parse(response.getText());
62
					JSONArray reponse;
62
					JSONArray reponse;
-
 
63
					String urlImage=null;
Line 63... Line 64...
63
					String urlImage=null;
64
					String urlImageMax=null;
64
 
65
 
65
					if ((reponse = responseValue.isArray()) != null) {
66
					if ((reponse = responseValue.isArray()) != null) {
-
 
67
						// Url Image
66
						// Url Image
68
						urlImage= ((JSONString)reponse.get(0)).stringValue();
67
						urlImage= ((JSONString)reponse.get(0)).stringValue();
69
						urlImageMax= ((JSONString)reponse.get(1)).stringValue();
68
					}
70
					}
-
 
71
					else {
69
					else {
72
						urlImage="";
Line 70... Line 73...
70
						urlImage="";
73
						urlImageMax="";
71
					}
74
					}
72
					
75
					
Line 73... Line 76...
73
					r.rafraichir(urlImage,true);				
76
					r.rafraichir(new String[]{urlImage,urlImageMax},true);				
74
				}
77
				}