Subversion Repositories eFlore/Applications.del

Rev

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

Rev 459 Rev 534
Line 7... Line 7...
7
import com.google.gwt.uibinder.client.UiBinder;
7
import com.google.gwt.uibinder.client.UiBinder;
8
import com.google.gwt.uibinder.client.UiField;
8
import com.google.gwt.uibinder.client.UiField;
9
import com.google.gwt.user.client.ui.Button;
9
import com.google.gwt.user.client.ui.Button;
10
import com.google.gwt.user.client.ui.Composite;
10
import com.google.gwt.user.client.ui.Composite;
11
import com.google.gwt.user.client.ui.HTMLPanel;
11
import com.google.gwt.user.client.ui.HTMLPanel;
-
 
12
import com.google.gwt.user.client.ui.HasWidgets;
12
import com.google.gwt.user.client.ui.Panel;
13
import com.google.gwt.user.client.ui.Panel;
13
import com.google.gwt.user.client.ui.Widget;
14
import com.google.gwt.user.client.ui.Widget;
Line 14... Line 15...
14
 
15
 
Line 15... Line 16...
15
public class ResultatRechercheImageVue extends Composite implements ResultatRechercheImagePresenteur.Vue {
16
public class ResultatRechercheImageVue extends Composite implements ResultatRechercheImagePresenteur.Vue {
16
 
17
 
17
	@UiField
18
	@UiField
18
	Panel panneauChargement;
19
	Panel panneauChargement;
19
	private final List<Panel> panneauxImages = new ArrayList<Panel>();
20
	private final List<HasWidgets> panneauxImages = new ArrayList<HasWidgets>();
Line 20... Line 21...
20
	private final int nbImagesPerPage = 10;
21
	private final int nbImagesPerPage = 10;
21
	private int numImage = 0;
22
	private int numImage = 0;
Line 57... Line 58...
57
			Panel imagePanel = new HTMLPanel("");
58
			Panel imagePanel = new HTMLPanel("");
58
			panneauxImages.add(imagePanel);
59
			panneauxImages.add(imagePanel);
59
		}
60
		}
60
	}
61
	}
Line 61... Line 62...
61
 
62
 
Line 62... Line 63...
62
	public void afficherPanneauxObservation(List<Panel> imagesPanel) {
63
	public void afficherPanneauxObservation(List<HasWidgets> imagesPanel) {
63
 
64
 
64
		imageTable.clear();
65
		imageTable.clear();
65
		for (int i = 0; i < imagesPanel.size(); i++) {
66
		for (int i = 0; i < imagesPanel.size(); i++) {
Line 106... Line 107...
106
 
107
 
107
	public int getNbImagesPerPage() {
108
	public int getNbImagesPerPage() {
108
		return nbImagesPerPage;
109
		return nbImagesPerPage;
Line 109... Line 110...
109
	}
110
	}
110
 
111
 
111
	public List<Panel> getPanneauxImages() {
112
	public List<HasWidgets> getPanneauxImages() {
Line 112... Line 113...
112
		return panneauxImages;
113
		return panneauxImages;
113
	}
114
	}