Subversion Repositories eFlore/Applications.del

Rev

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

Rev 1151 Rev 1169
Line 57... Line 57...
57
		public HasClickHandlers getTriParNbVotesDescendant();
57
		public HasClickHandlers getTriParNbVotesDescendant();
Line 58... Line 58...
58
 
58
 
Line 59... Line 59...
59
		public HasClickHandlers getTriParDateAscendant();
59
		public HasClickHandlers getTriParDateAscendant();
-
 
60
 
-
 
61
		public HasClickHandlers getTriParDateDescendant();
-
 
62
		
-
 
63
		public HasClickHandlers getTriParNbTagsAscendant();
Line 60... Line 64...
60
 
64
 
Line 61... Line 65...
61
		public HasClickHandlers getTriParDateDescendant();
65
		public HasClickHandlers getTriParNbTagsDescendant();
Line 87... Line 91...
87
		public void afficherVoteAscendant();
91
		public void afficherVoteAscendant();
Line 88... Line 92...
88
 
92
 
Line 89... Line 93...
89
		public void afficherVoteDescendant();
93
		public void afficherVoteDescendant();
-
 
94
 
-
 
95
		public HasClickHandlers getLabelDate();
Line 90... Line 96...
90
 
96
	
Line 91... Line 97...
91
		public HasClickHandlers getLabelDate();
97
		public HasClickHandlers getLabelTag();
Line 92... Line 98...
92
 
98
 
Line 93... Line 99...
93
		public void masquerDateAscendant();
99
		public void masquerDateAscendant();
-
 
100
 
-
 
101
		public void masquerDateDescendant();
-
 
102
 
-
 
103
		public void afficherDateAscendant();
-
 
104
 
-
 
105
		public void afficherDateDescendant();
-
 
106
 
-
 
107
		public void masquerTagAscendant();
94
 
108
 
Line 95... Line 109...
95
		public void masquerDateDescendant();
109
		public void afficherTagDescendant();
96
 
110
 
97
		public void afficherDateAscendant();
111
		public void masquerTagDescendant();
98
 
112
 
99
		public void afficherDateDescendant();
113
		public void afficherTagAscendant();
100
	}
114
	}
-
 
115
 
Line 101... Line 116...
101
 
116
	private Vue vue;
102
	private Vue vue;
117
	private ImageService imageService;
103
	private ImageService imageService;
118
	private final ProtocoleService protocoleService;
104
	private final ProtocoleService protocoleService;
119
	private List<Protocole> protocoles;
Line 120... Line 135...
120
		chargerProtocoles();
135
		chargerProtocoles();
121
		vue.masquerVoteDescendant();
136
		vue.masquerVoteDescendant();
122
		vue.masquerVoteAscendant();
137
		vue.masquerVoteAscendant();
123
		// vue.masquerDateDescendant();
138
		// vue.masquerDateDescendant();
124
		vue.masquerDateAscendant();
139
		vue.masquerDateAscendant();
-
 
140
		vue.masquerTagAscendant();
-
 
141
		vue.masquerTagDescendant();
125
	}
142
	}
Line 126... Line 143...
126
 
143
 
127
	public void gererEvenements() {
144
	public void gererEvenements() {
128
		vue.getListeProtocoles().addChangeHandler(new ChangeHandler() {
145
		vue.getListeProtocoles().addChangeHandler(new ChangeHandler() {
Line 151... Line 168...
151
		};
168
		};
Line 152... Line 169...
152
 
169
 
153
		vue.getLabelDate().addClickHandler(surClicTriDate);
170
		vue.getLabelDate().addClickHandler(surClicTriDate);
154
		vue.getTriParDateAscendant().addClickHandler(surClicTriDate);
171
		vue.getTriParDateAscendant().addClickHandler(surClicTriDate);
-
 
172
		vue.getTriParDateDescendant().addClickHandler(surClicTriDate);
-
 
173
		
-
 
174
		ClickHandler surClicTriTag = new ClickHandler() {
-
 
175
			@Override
-
 
176
			public void onClick(ClickEvent event) {
-
 
177
				surClicTriTag();
-
 
178
			}
-
 
179
		};
-
 
180
		
-
 
181
		vue.getLabelTag().addClickHandler(surClicTriTag);
-
 
182
		vue.getTriParNbTagsAscendant().addClickHandler(surClicTriTag);
Line 155... Line 183...
155
		vue.getTriParDateDescendant().addClickHandler(surClicTriDate);
183
		vue.getTriParNbTagsDescendant().addClickHandler(surClicTriTag);
156
 
184
 
157
		BusEvenementiel.getInstance().addHandler(EvenementChangementProtocole.TYPE, new GestionnaireEvenementChangementProtocole() {
185
		BusEvenementiel.getInstance().addHandler(EvenementChangementProtocole.TYPE, new GestionnaireEvenementChangementProtocole() {
158
			@Override
186
			@Override
Line 164... Line 192...
164
				}
192
				}
165
			}
193
			}
166
		});
194
		});
167
	}
195
	}
Line -... Line 196...
-
 
196
 
-
 
197
	protected void surClicTriTag() {
-
 
198
		vue.masquerDateDescendant();
-
 
199
		vue.masquerDateAscendant();
-
 
200
		vue.masquerVoteDescendant();
-
 
201
		vue.masquerVoteAscendant();
-
 
202
		if (triCourantTag == ModeTri.TRI_ASCENDANT) {
-
 
203
			triCourantTag = ModeTri.TRI_DESCENDANT;
-
 
204
			vue.masquerTagAscendant();
-
 
205
			vue.afficherTagDescendant();
-
 
206
		} else {
-
 
207
			triCourantTag = ModeTri.TRI_ASCENDANT;
-
 
208
			vue.masquerTagDescendant();
-
 
209
			vue.afficherTagAscendant();
-
 
210
		}
-
 
211
		InformationsRecherche informationsRechercheImages = CacheClient.getInstance().getInformationsRechercheImage();
-
 
212
		informationsRechercheImages.setTriParNbTags(triCourantTag);
-
 
213
		informationsRechercheImages.setTriParDate(ModeTri.PAS_DE_TRI);
-
 
214
		informationsRechercheImages.setTriParNbVotes(ModeTri.PAS_DE_TRI);
-
 
215
		chargerEtAfficherImagesPageEnCours();
-
 
216
	}
168
 
217
 
169
	public void surClicTriVote() {
218
	public void surClicTriVote() {
170
		vue.masquerDateDescendant();
219
		vue.masquerDateDescendant();
-
 
220
		vue.masquerDateAscendant();
-
 
221
		vue.masquerTagAscendant();
171
		vue.masquerDateAscendant();
222
		vue.masquerTagDescendant();
172
		if (triCourantVote == ModeTri.TRI_ASCENDANT) {
223
		if (triCourantVote == ModeTri.TRI_ASCENDANT) {
173
			triCourantVote = ModeTri.TRI_DESCENDANT;
224
			triCourantVote = ModeTri.TRI_DESCENDANT;
174
			vue.masquerVoteAscendant();
225
			vue.masquerVoteAscendant();
175
			vue.afficherVoteDescendant();
226
			vue.afficherVoteDescendant();
Line 181... Line 232...
181
		InformationsRecherche informationsRechercheImages = CacheClient.getInstance().getInformationsRechercheImage();
232
		InformationsRecherche informationsRechercheImages = CacheClient.getInstance().getInformationsRechercheImage();
182
		int IdProtocole = CacheClient.getInstance().getProtocoleCourant().getId();
233
		int IdProtocole = CacheClient.getInstance().getProtocoleCourant().getId();
183
		informationsRechercheImages.setTriParNbVotes(triCourantVote);
234
		informationsRechercheImages.setTriParNbVotes(triCourantVote);
184
		informationsRechercheImages.setIdProtocoleSelectionne(IdProtocole + "");
235
		informationsRechercheImages.setIdProtocoleSelectionne(IdProtocole + "");
185
		informationsRechercheImages.setTriParDate(ModeTri.PAS_DE_TRI);
236
		informationsRechercheImages.setTriParDate(ModeTri.PAS_DE_TRI);
-
 
237
		informationsRechercheImages.setTriParNbTags(ModeTri.PAS_DE_TRI);
186
		chargerEtAfficherImagesPageEnCours();
238
		chargerEtAfficherImagesPageEnCours();
187
	}
239
	}
Line 188... Line 240...
188
 
240
 
189
	public void surClicTriDate() {
241
	public void surClicTriDate() {
Line 199... Line 251...
199
			vue.afficherDateAscendant();
251
			vue.afficherDateAscendant();
200
		}
252
		}
201
		InformationsRecherche informationsRechercheImages = CacheClient.getInstance().getInformationsRechercheImage();
253
		InformationsRecherche informationsRechercheImages = CacheClient.getInstance().getInformationsRechercheImage();
202
		informationsRechercheImages.setTriParDate(triCourantDate);
254
		informationsRechercheImages.setTriParDate(triCourantDate);
203
		informationsRechercheImages.setTriParNbVotes(ModeTri.PAS_DE_TRI);
255
		informationsRechercheImages.setTriParNbVotes(ModeTri.PAS_DE_TRI);
-
 
256
		informationsRechercheImages.setTriParNbTags(ModeTri.PAS_DE_TRI);
204
		chargerEtAfficherImagesPageEnCours();
257
		chargerEtAfficherImagesPageEnCours();
205
	}
258
	}
Line 206... Line 259...
206
 
259
 
207
	public void surChangementProtocole() {
260
	public void surChangementProtocole() {