Subversion Repositories eFlore/Applications.del

Rev

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

Rev 534 Rev 564
Line 8... Line 8...
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.HasWidgets;
-
 
13
import com.google.gwt.user.client.ui.Label;
13
import com.google.gwt.user.client.ui.Panel;
14
import com.google.gwt.user.client.ui.Panel;
14
import com.google.gwt.user.client.ui.Widget;
15
import com.google.gwt.user.client.ui.Widget;
Line 15... Line 16...
15
 
16
 
Line 27... Line 28...
27
	}
28
	}
Line 28... Line 29...
28
 
29
 
Line 29... Line 30...
29
	private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
30
	private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
30
 
31
 
Line 31... Line 32...
31
	@UiField
32
	@UiField
32
	Panel panneauPagination, panneauPaginationHaut;
33
	Panel panneauPagination, panneauPaginationHaut, zoneTri;
33
 
34
 
34
	@UiField
35
	@UiField
35
	HTMLPanel imageTable;
36
	HTMLPanel imageTable;
Line -... Line 37...
-
 
37
 
-
 
38
	@UiField
-
 
39
	Button triParNbVotesAscendant, triParNbVotesDescendant, triParDateAscendant, triParDateDescendant;
36
	
40
 
37
	@UiField
41
	@UiField
38
	Button triParNbVotesAscendant, triParNbVotesDescendant, triParDateAscendant, triParDateDescendant;
42
	Label aucunResultat;
39
 
43
 
Line 58... Line 62...
58
			Panel imagePanel = new HTMLPanel("");
62
			Panel imagePanel = new HTMLPanel("");
59
			panneauxImages.add(imagePanel);
63
			panneauxImages.add(imagePanel);
60
		}
64
		}
61
	}
65
	}
Line 62... Line 66...
62
 
66
 
63
	public void afficherPanneauxObservation(List<HasWidgets> imagesPanel) {
-
 
64
 
67
	public void afficherElementsAucunResultatTrouve() {
65
		imageTable.clear();
68
		imageTable.clear();
66
		for (int i = 0; i < imagesPanel.size(); i++) {
69
		aucunResultat.setVisible(true);
67
			HTMLPanel panneauImage = (HTMLPanel) imagesPanel.get(i);
70
		panneauPaginationHaut.setVisible(false);
68
			panneauxImages.add(panneauImage);
-
 
69
			// imageTable.setWidget((i) / nbCol, (i) % nbCol, panneauImage);
71
		panneauPagination.setVisible(false);
70
			imageTable.add(panneauImage);
72
		zoneTri.setVisible(false);
Line -... Line 73...
-
 
73
	}
-
 
74
 
-
 
75
	public void afficherElementsResultatsTrouve() {
-
 
76
		aucunResultat.setVisible(false);
-
 
77
		panneauPaginationHaut.setVisible(true);
71
		}
78
		panneauPagination.setVisible(true);
Line 72... Line 79...
72
 
79
		zoneTri.setVisible(true);
73
	}
80
	}
74
 
81
 
Line 75... Line 82...
75
	public void setNumImage(int numImage) {
82
	public void setNumImage(int numImage) {
76
		this.numImage = numImage;
83
		this.numImage = numImage;
77
	}
84
	}
78
 
85
 
Line 79... Line 86...
79
	public void startChargement() {
86
	public void startChargement() {
80
		panneauChargement.setHeight((this.getOffsetHeight() - (panneauPagination.getOffsetHeight()*2))+"px");
87
		panneauChargement.setHeight((this.getOffsetHeight() - (panneauPagination.getOffsetHeight() * 2)) + "px");
Line 98... Line 105...
98
	}
105
	}
Line 99... Line 106...
99
 
106
 
100
	public Panel getPanneauPagination() {
107
	public Panel getPanneauPagination() {
101
		return panneauPagination;
108
		return panneauPagination;
102
	}
109
	}
103
	
110
 
104
	public Panel getPanneauPaginationHaut() {
111
	public Panel getPanneauPaginationHaut() {
105
		return panneauPaginationHaut;
112
		return panneauPaginationHaut;
Line 106... Line 113...
106
	}
113
	}
Line 110... Line 117...
110
	}
117
	}
Line 111... Line 118...
111
 
118
 
112
	public List<HasWidgets> getPanneauxImages() {
119
	public List<HasWidgets> getPanneauxImages() {
113
		return panneauxImages;
120
		return panneauxImages;
114
	}
121
	}
115
	
122
 
116
	public Button getTriParNbVotesAscendant() {
123
	public Button getTriParNbVotesAscendant() {
117
		return triParNbVotesAscendant;
124
		return triParNbVotesAscendant;
Line 118... Line 125...
118
	}
125
	}