Subversion Repositories eFlore/Applications.del

Rev

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

Rev 365 Rev 379
Line 9... Line 9...
9
import com.google.gwt.user.client.ui.Composite;
9
import com.google.gwt.user.client.ui.Composite;
10
import com.google.gwt.user.client.ui.HTMLPanel;
10
import com.google.gwt.user.client.ui.HTMLPanel;
11
import com.google.gwt.user.client.ui.Panel;
11
import com.google.gwt.user.client.ui.Panel;
12
import com.google.gwt.user.client.ui.Widget;
12
import com.google.gwt.user.client.ui.Widget;
Line 13... Line 13...
13
 
13
 
Line 14... Line 14...
14
public class ResultatRechercheImageVue extends Composite {
14
public class ResultatRechercheImageVue extends Composite implements ResultatRechercheImagePresenteur.Vue {
15
 
15
 
16
	@UiField
16
	@UiField
17
	Panel panneauChargement;
17
	Panel panneauChargement;
Line 31... Line 31...
31
 
31
 
32
	@UiField
32
	@UiField
Line 33... Line 33...
33
	HTMLPanel imageTable;
33
	HTMLPanel imageTable;
34
 
34
 
35
	// Constructeur
35
	// Constructeur
36
	protected ResultatRechercheImageVue() {
36
	public ResultatRechercheImageVue() {
Line 37... Line 37...
37
		initWidget(uiBinder.createAndBindUi(this));
37
		initWidget(uiBinder.createAndBindUi(this));
38
	}
38
	}
39
 
39
 
40
	/**
40
	/**
41
	 * Nettoie et remet à zéro les composants du panneau qui doivent l'être
41
	 * Nettoie et remet à zéro les composants du panneau qui doivent l'être
42
	 * */
42
	 * */
43
	protected void nettoyer() {
43
	public void nettoyer() {
44
		setNumImage(0);
44
		setNumImage(0);
Line 45... Line 45...
45
		imageTable.clear();
45
		imageTable.clear();
Line 46... Line 46...
46
		panneauxImages.clear();
46
		panneauxImages.clear();
47
	}
47
	}
48
 
48
 
49
	protected void creerPanneauxObservations(int taille) {
49
	public void creerPanneauxObservations(int taille) {
50
 
50
 
51
		panneauxImages.clear();
51
		panneauxImages.clear();
Line 52... Line 52...
52
		for (int i = 0; i < taille; i++) {
52
		for (int i = 0; i < taille; i++) {
Line 53... Line 53...
53
			Panel imagePanel = new HTMLPanel("");
53
			Panel imagePanel = new HTMLPanel("");
54
			panneauxImages.add(imagePanel);
54
			panneauxImages.add(imagePanel);
55
		}
55
		}
56
	}
56
	}
Line 69... Line 69...
69
 
69
 
70
	public void setNumImage(int numImage) {
70
	public void setNumImage(int numImage) {
71
		this.numImage = numImage;
71
		this.numImage = numImage;
Line 72... Line 72...
72
	}
72
	}
73
 
73
 
74
	protected void startChargement() {
74
	public void startChargement() {
Line 75... Line 75...
75
		panneauChargement.setVisible(true);
75
		panneauChargement.setVisible(true);
76
	}
76
	}
77
 
77
 
Line 78... Line 78...
78
	protected void stopChargement() {
78
	public void stopChargement() {
79
		panneauChargement.setVisible(false);
79
		panneauChargement.setVisible(false);