| Line 126... |
Line 126... |
| 126 |
vue.masquerVoteAscendant();
|
126 |
vue.masquerVoteAscendant();
|
| 127 |
vue.masquerDateDescendant();
|
127 |
vue.masquerDateDescendant();
|
| 128 |
vue.masquerDateAscendant();
|
128 |
vue.masquerDateAscendant();
|
| 129 |
vue.masquerTagAscendant();
|
129 |
vue.masquerTagAscendant();
|
| 130 |
vue.masquerTagDescendant();
|
130 |
vue.masquerTagDescendant();
|
| - |
|
131 |
|
| - |
|
132 |
initialiserAPartirInfosCache();
|
| - |
|
133 |
}
|
| - |
|
134 |
|
| - |
|
135 |
private void initialiserAPartirInfosCache() {
|
| - |
|
136 |
InformationsRecherche infos = CacheClient.getInstance().getInformationsRechercheImage();
|
| - |
|
137 |
if(infos.getTriParDate() != ModeTri.PAS_DE_TRI) {
|
| - |
|
138 |
mettreAJourAffichageTriDate();
|
| - |
|
139 |
}
|
| - |
|
140 |
|
| - |
|
141 |
if(infos.getTriParNbVotes() != ModeTri.PAS_DE_TRI) {
|
| - |
|
142 |
mettreAJourAffichageTriVote();
|
| - |
|
143 |
}
|
| - |
|
144 |
|
| - |
|
145 |
if(infos.getTriParNbTags() != ModeTri.PAS_DE_TRI) {
|
| - |
|
146 |
mettreAjourAffichageTriTag();
|
| - |
|
147 |
}
|
| - |
|
148 |
|
| 131 |
}
|
149 |
}
|
| Line 132... |
Line 150... |
| 132 |
|
150 |
|
| 133 |
public void gererEvenements() {
|
151 |
public void gererEvenements() {
|
| 134 |
ClickHandler surClicTriVote = new ClickHandler() {
|
152 |
ClickHandler surClicTriVote = new ClickHandler() {
|
| Line 175... |
Line 193... |
| 175 |
}
|
193 |
}
|
| 176 |
});
|
194 |
});
|
| 177 |
}
|
195 |
}
|
| Line 178... |
Line 196... |
| 178 |
|
196 |
|
| - |
|
197 |
protected void surClicTriTag() {
|
| - |
|
198 |
mettreAjourAffichageTriTag();
|
| - |
|
199 |
InformationsRecherche informationsRechercheImages = CacheClient.getInstance().getInformationsRechercheImage();
|
| - |
|
200 |
informationsRechercheImages.setTriParNbTags(triCourantTag);
|
| - |
|
201 |
informationsRechercheImages.setTriParDate(ModeTri.PAS_DE_TRI);
|
| - |
|
202 |
informationsRechercheImages.setTriParNbVotes(ModeTri.PAS_DE_TRI);
|
| - |
|
203 |
chargerEtAfficherImagesPageEnCours();
|
| - |
|
204 |
}
|
| - |
|
205 |
|
| 179 |
protected void surClicTriTag() {
|
206 |
private void mettreAjourAffichageTriTag() {
|
| 180 |
vue.masquerDateDescendant();
|
207 |
vue.masquerDateDescendant();
|
| 181 |
vue.masquerDateAscendant();
|
208 |
vue.masquerDateAscendant();
|
| 182 |
vue.masquerVoteDescendant();
|
209 |
vue.masquerVoteDescendant();
|
| 183 |
vue.masquerVoteAscendant();
|
210 |
vue.masquerVoteAscendant();
|
| Line 188... |
Line 215... |
| 188 |
} else {
|
215 |
} else {
|
| 189 |
triCourantTag = ModeTri.TRI_ASCENDANT;
|
216 |
triCourantTag = ModeTri.TRI_ASCENDANT;
|
| 190 |
vue.masquerTagDescendant();
|
217 |
vue.masquerTagDescendant();
|
| 191 |
vue.afficherTagAscendant();
|
218 |
vue.afficherTagAscendant();
|
| 192 |
}
|
219 |
}
|
| - |
|
220 |
}
|
| - |
|
221 |
|
| - |
|
222 |
public void surClicTriVote() {
|
| - |
|
223 |
mettreAJourAffichageTriVote();
|
| 193 |
InformationsRecherche informationsRechercheImages = CacheClient.getInstance().getInformationsRechercheImage();
|
224 |
InformationsRecherche informationsRechercheImages = CacheClient.getInstance().getInformationsRechercheImage();
|
| - |
|
225 |
int IdProtocole = CacheClient.getInstance().getProtocoleCourant().getId();
|
| 194 |
informationsRechercheImages.setTriParNbTags(triCourantTag);
|
226 |
informationsRechercheImages.setTriParNbVotes(triCourantVote);
|
| - |
|
227 |
informationsRechercheImages.setIdProtocoleSelectionne(IdProtocole + "");
|
| 195 |
informationsRechercheImages.setTriParDate(ModeTri.PAS_DE_TRI);
|
228 |
informationsRechercheImages.setTriParDate(ModeTri.PAS_DE_TRI);
|
| 196 |
informationsRechercheImages.setTriParNbVotes(ModeTri.PAS_DE_TRI);
|
229 |
informationsRechercheImages.setTriParNbTags(ModeTri.PAS_DE_TRI);
|
| 197 |
chargerEtAfficherImagesPageEnCours();
|
230 |
chargerEtAfficherImagesPageEnCours();
|
| 198 |
}
|
231 |
}
|
| 199 |
|
232 |
|
| 200 |
public void surClicTriVote() {
|
233 |
private void mettreAJourAffichageTriVote() {
|
| 201 |
vue.masquerDateDescendant();
|
234 |
vue.masquerDateDescendant();
|
| 202 |
vue.masquerDateAscendant();
|
235 |
vue.masquerDateAscendant();
|
| 203 |
vue.masquerTagAscendant();
|
236 |
vue.masquerTagAscendant();
|
| 204 |
vue.masquerTagDescendant();
|
237 |
vue.masquerTagDescendant();
|
| 205 |
if (triCourantVote == ModeTri.TRI_ASCENDANT) {
|
238 |
if (triCourantVote == ModeTri.TRI_ASCENDANT) {
|
| Line 209... |
Line 242... |
| 209 |
} else {
|
242 |
} else {
|
| 210 |
triCourantVote = ModeTri.TRI_ASCENDANT;
|
243 |
triCourantVote = ModeTri.TRI_ASCENDANT;
|
| 211 |
vue.masquerVoteDescendant();
|
244 |
vue.masquerVoteDescendant();
|
| 212 |
vue.afficherVoteAscendant();
|
245 |
vue.afficherVoteAscendant();
|
| 213 |
}
|
246 |
}
|
| - |
|
247 |
}
|
| - |
|
248 |
|
| - |
|
249 |
public void surClicTriDate() {
|
| - |
|
250 |
mettreAJourAffichageTriDate();
|
| 214 |
InformationsRecherche informationsRechercheImages = CacheClient.getInstance().getInformationsRechercheImage();
|
251 |
InformationsRecherche informationsRechercheImages = CacheClient.getInstance().getInformationsRechercheImage();
|
| 215 |
int IdProtocole = CacheClient.getInstance().getProtocoleCourant().getId();
|
- |
|
| 216 |
informationsRechercheImages.setTriParNbVotes(triCourantVote);
|
252 |
informationsRechercheImages.setTriParDate(triCourantDate);
|
| 217 |
informationsRechercheImages.setIdProtocoleSelectionne(IdProtocole + "");
|
- |
|
| 218 |
informationsRechercheImages.setTriParDate(ModeTri.PAS_DE_TRI);
|
253 |
informationsRechercheImages.setTriParNbVotes(ModeTri.PAS_DE_TRI);
|
| 219 |
informationsRechercheImages.setTriParNbTags(ModeTri.PAS_DE_TRI);
|
254 |
informationsRechercheImages.setTriParNbTags(ModeTri.PAS_DE_TRI);
|
| 220 |
chargerEtAfficherImagesPageEnCours();
|
255 |
chargerEtAfficherImagesPageEnCours();
|
| 221 |
}
|
256 |
}
|
| 222 |
|
257 |
|
| 223 |
public void surClicTriDate() {
|
258 |
private void mettreAJourAffichageTriDate() {
|
| - |
|
259 |
vue.masquerTagAscendant();
|
| - |
|
260 |
vue.masquerTagDescendant();
|
| 224 |
vue.masquerVoteDescendant();
|
261 |
vue.masquerVoteDescendant();
|
| 225 |
vue.masquerVoteAscendant();
|
262 |
vue.masquerVoteAscendant();
|
| 226 |
if (triCourantDate == ModeTri.TRI_ASCENDANT) {
|
263 |
if (triCourantDate == ModeTri.TRI_ASCENDANT) {
|
| 227 |
triCourantDate = ModeTri.TRI_DESCENDANT;
|
264 |
triCourantDate = ModeTri.TRI_DESCENDANT;
|
| 228 |
vue.masquerDateAscendant();
|
265 |
vue.masquerDateAscendant();
|
| Line 230... |
Line 267... |
| 230 |
} else {
|
267 |
} else {
|
| 231 |
triCourantDate = ModeTri.TRI_ASCENDANT;
|
268 |
triCourantDate = ModeTri.TRI_ASCENDANT;
|
| 232 |
vue.masquerDateDescendant();
|
269 |
vue.masquerDateDescendant();
|
| 233 |
vue.afficherDateAscendant();
|
270 |
vue.afficherDateAscendant();
|
| 234 |
}
|
271 |
}
|
| 235 |
InformationsRecherche informationsRechercheImages = CacheClient.getInstance().getInformationsRechercheImage();
|
- |
|
| 236 |
informationsRechercheImages.setTriParDate(triCourantDate);
|
- |
|
| 237 |
informationsRechercheImages.setTriParNbVotes(ModeTri.PAS_DE_TRI);
|
- |
|
| 238 |
informationsRechercheImages.setTriParNbTags(ModeTri.PAS_DE_TRI);
|
- |
|
| 239 |
chargerEtAfficherImagesPageEnCours();
|
- |
|
| 240 |
}
|
272 |
}
|
| Line 241... |
Line 273... |
| 241 |
|
273 |
|
| 242 |
public void rechercherImagesEtCreerWidgetPagination() {
|
274 |
public void rechercherImagesEtCreerWidgetPagination() {
|
| 243 |
// appel du service d'image pour avoir le nb total d'elements pour la
|
275 |
// appel du service d'image pour avoir le nb total d'elements pour la
|
| Line 322... |
Line 354... |
| 322 |
|
354 |
|
| 323 |
public void chargerEtAfficherImagesPageEnCours() {
|
355 |
public void chargerEtAfficherImagesPageEnCours() {
|
| 324 |
final int debut = (CacheClient.getInstance().getPageCouranteRechercheImage() - 1) * CacheClient.getInstance().getPasPagination();
|
356 |
final int debut = (CacheClient.getInstance().getPageCouranteRechercheImage() - 1) * CacheClient.getInstance().getPasPagination();
|
| 325 |
final int fin = (CacheClient.getInstance().getPageCouranteRechercheImage()) * CacheClient.getInstance().getPasPagination();
|
357 |
final int fin = (CacheClient.getInstance().getPageCouranteRechercheImage()) * CacheClient.getInstance().getPasPagination();
|
| - |
|
358 |
chargerEtAfficherImages(debut, fin);
|
| 326 |
chargerEtAfficherImages(debut, fin);
|
359 |
CacheClient.getInstance().mettreAjourUrlCourante();
|
| Line 327... |
Line 360... |
| 327 |
}
|
360 |
}
|
| 328 |
|
361 |
|
| 329 |
public Vue getVue() {
|
362 |
public Vue getVue() {
|