Subversion Repositories eFlore/Applications.del

Rev

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

Rev 564 Rev 566
Line 10... Line 10...
10
import com.google.gwt.event.dom.client.ChangeHandler;
10
import com.google.gwt.event.dom.client.ChangeHandler;
11
import com.google.gwt.event.dom.client.ClickEvent;
11
import com.google.gwt.event.dom.client.ClickEvent;
12
import com.google.gwt.event.dom.client.ClickHandler;
12
import com.google.gwt.event.dom.client.ClickHandler;
13
import com.google.gwt.event.dom.client.HasChangeHandlers;
13
import com.google.gwt.event.dom.client.HasChangeHandlers;
14
import com.google.gwt.event.dom.client.HasClickHandlers;
14
import com.google.gwt.event.dom.client.HasClickHandlers;
-
 
15
import com.google.gwt.user.client.Window;
15
import com.google.gwt.user.client.ui.HasText;
16
import com.google.gwt.user.client.ui.HasText;
16
import com.google.gwt.user.client.ui.HasWidgets;
17
import com.google.gwt.user.client.ui.HasWidgets;
17
import com.google.gwt.user.client.ui.IsWidget;
18
import com.google.gwt.user.client.ui.IsWidget;
Line 18... Line 19...
18
 
19
 
Line 103... Line 104...
103
	public void go(HasWidgets container) {
104
	public void go(HasWidgets container) {
104
		container.add(vue.asWidget());
105
		container.add(vue.asWidget());
105
		gererEvenements();
106
		gererEvenements();
106
		actualiserLiensPagesPagination();
107
		actualiserLiensPagesPagination();
107
		actualiserPas();
108
		actualiserPas();
-
 
109
		actualiserAffichageBoutons();
108
	}
110
	}
Line 109... Line 111...
109
 
111
 
110
	/**
112
	/**
111
	 * Gérer les évènements sur les boutons statiques (précédent, suivant et
113
	 * Gérer les évènements sur les boutons statiques (précédent, suivant et
Line 152... Line 154...
152
			@Override
154
			@Override
153
			public void onChangementPage(EvenementChangementPage event) {
155
			public void onChangementPage(EvenementChangementPage event) {
154
				if (event.getGroupePagination() == groupePagination) {
156
				if (event.getGroupePagination() == groupePagination) {
155
					pageCourante = event.getPageAAfficher();
157
					pageCourante = event.getPageAAfficher();
156
					mettreEnValeurPageCourante();
158
					mettreEnValeurPageCourante();
-
 
159
					actualiserAffichageBoutons();
157
				}
160
				}
158
			}
161
			}
159
		});
162
		});
Line 160... Line 163...
160
 
163
 
Line 319... Line 322...
319
 
322
 
320
	public String getGroupePagination() {
323
	public String getGroupePagination() {
321
		return groupePagination;
324
		return groupePagination;
Line -... Line 325...
-
 
325
	}
-
 
326
 
-
 
327
	public void actualiserAffichageBoutons() {
-
 
328
		if (pageCourante == 1) {
-
 
329
			vue.masquerBoutonPrecedent();
-
 
330
			vue.afficherBoutonSuivant();
-
 
331
		} else {
-
 
332
			vue.afficherBoutonPrecedent();
-
 
333
			if (pageCourante == nbPage) {
-
 
334
				vue.masquerBoutonSuivant();
-
 
335
			}
322
	}
336
		}