Subversion Repositories eFlore/Applications.del

Rev

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

Rev 939 Rev 1037
Line 3... Line 3...
3
import java.util.List;
3
import java.util.List;
Line 4... Line 4...
4
 
4
 
5
import org.tela_botanica.del.client.cache.CacheClient;
5
import org.tela_botanica.del.client.cache.CacheClient;
6
import org.tela_botanica.del.client.modeles.Image;
6
import org.tela_botanica.del.client.modeles.Image;
-
 
7
import org.tela_botanica.del.client.modeles.ImageServiceResultat;
7
import org.tela_botanica.del.client.modeles.ImageServiceResultat;
8
import org.tela_botanica.del.client.modeles.InformationsRecherche;
8
import org.tela_botanica.del.client.services.rest.ImageService;
9
import org.tela_botanica.del.client.services.rest.ImageService;
Line 9... Line 10...
9
import org.tela_botanica.del.client.services.rest.async.ImagesParTaxonCallback;
10
import org.tela_botanica.del.client.services.rest.async.ImagesParTaxonCallback;
10
 
11
 
Line 56... Line 57...
56
 
57
 
Line 57... Line 58...
57
	public void chargerObservationsEflore() {
58
	public void chargerObservationsEflore() {
Line -... Line 59...
-
 
59
 
-
 
60
		vue.startChargement();
-
 
61
 
58
 
62
		InformationsRecherche informationsRecherche = new InformationsRecherche();
Line 59... Line 63...
59
		vue.startChargement();
63
		informationsRecherche.setTaxon(nomTaxonComparaison);
60
 
64
 
-
 
65
		ImagesParTaxonCallback callback = new ImagesParTaxonCallback() {
-
 
66
 
-
 
67
			@Override
61
		ImagesParTaxonCallback callback = new ImagesParTaxonCallback() {
68
			public void surRetour(ImageServiceResultat imagesRecues) {
62
 
69
				if (imagesRecues == null||imagesRecues.getImages()==null||imagesRecues.getImages().size()==0) {
63
			@Override
70
					vue.stopChargement();
64
			public void surRetour(ImageServiceResultat imagesRecues) {
71
				} else {
65
				setImagesEflore(imagesRecues.getImages());
72
					setImagesEflore(imagesRecues.getImages());
Line 66... Line 73...
66
				vue.chargerImagesEflore(imagesRecues.getImages(), 0);
73
					vue.chargerImagesEflore(imagesRecues.getImages(), 0);
67
				vue.stopChargement();
74
					vue.stopChargement();
68
 
75
				}
Line 69... Line 76...
69
			}
76
			}
Line 70... Line 77...
70
 
77
 
Line 71... Line 78...
71
			@Override
78
			@Override
Line 72... Line 79...
72
			public void surErreur(String messageErreur) {
79
			public void surErreur(String messageErreur) {
Line 73... Line 80...
73
				Window.alert(messageErreur);
80
				Window.alert(messageErreur);
74
 
81