Subversion Repositories eFlore/Applications.del

Rev

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

Rev 124 Rev 148
Line 1... Line 1...
1
package org.tela_botanica.del.client.vues.rechercheobservations;
1
package org.tela_botanica.del.client.vues.rechercheimages;
Line 2... Line 2...
2
 
2
 
3
import java.util.ArrayList;
-
 
4
import java.util.Iterator;
3
import java.util.ArrayList;
Line 5... Line 4...
5
import java.util.List;
4
import java.util.List;
Line 6... Line 5...
6
 
5
 
7
import org.tela_botanica.del.client.modeles.Observation;
6
import org.tela_botanica.del.client.modeles.Image;
8
 
7
 
9
import com.google.gwt.core.client.GWT;
8
import com.google.gwt.core.client.GWT;
Line 17... Line 16...
17
import com.google.gwt.user.client.ui.Panel;
16
import com.google.gwt.user.client.ui.Panel;
18
import com.google.gwt.user.client.ui.TextBox;
17
import com.google.gwt.user.client.ui.TextBox;
19
import com.google.gwt.user.client.ui.VerticalPanel;
18
import com.google.gwt.user.client.ui.VerticalPanel;
20
import com.google.gwt.user.client.ui.Widget;
19
import com.google.gwt.user.client.ui.Widget;
Line 21... Line 20...
21
 
20
 
Line 22... Line 21...
22
public class ObservationRechercheVue extends Composite {
21
public class ImageRechercheVue extends Composite {
23
 
22
 
24
	private final VerticalPanel mainPanel = new VerticalPanel();
23
	private final VerticalPanel mainPanel = new VerticalPanel();
25
	private final Panel panneauChargement = new FlowPanel();
24
	private final Panel panneauChargement = new FlowPanel();
Line 32... Line 31...
32
	private int numImage = 0;
31
	private int numImage = 0;
33
	private final TextBox textBox = new TextBox();
32
	private final TextBox textBox = new TextBox();
Line 34... Line 33...
34
 
33
 
35
	// Annotation can be used to change the name of the associated xml file
34
	// Annotation can be used to change the name of the associated xml file
36
	// @UiTemplate("ObservationRechercheVue.ui.xml")
35
	// @UiTemplate("ObservationRechercheVue.ui.xml")
37
	interface MyUiBinder extends UiBinder<Widget, ObservationRechercheVue> {
36
	interface MyUiBinder extends UiBinder<Widget, ImageRechercheVue> {
Line 38... Line 37...
38
	}
37
	}
Line 39... Line 38...
39
 
38
 
Line 50... Line 49...
50
 
49
 
51
	@UiField
50
	@UiField
Line 52... Line 51...
52
	FlexTable imageTable;
51
	FlexTable imageTable;
53
 
52
 
Line 54... Line 53...
54
	// Constructeur
53
	// Constructeur
55
	protected ObservationRechercheVue() {
54
	protected ImageRechercheVue() {
56
 
55
 
Line 66... Line 65...
66
		setNumImage(0);
65
		setNumImage(0);
67
		imageTable.clear();
66
		imageTable.clear();
68
		panneauxImages.clear();
67
		panneauxImages.clear();
69
	}
68
	}
Line 70... Line 69...
70
 
69
 
Line 71... Line 70...
71
	protected void creerPanneauxObservation(List<Observation> observations) {
70
	protected void creerPanneauxObservation(List<Image> images) {
72
 
71
 
73
		for (int i = 0; i < observations.size(); i++) {
72
		for (int i = 0; i < images.size(); i++) {
74
			Panel imagePanel = new VerticalPanel();
73
			Panel imagePanel = new VerticalPanel();
Line 75... Line 74...
75
			panneauxImages.add(imagePanel);
74
			panneauxImages.add(imagePanel);