Subversion Repositories eFlore/Applications.del

Rev

Rev 14 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14 Rev 148
Line 1... Line 1...
1
package org.tela_botanica.del.client.vues.rechercheobservations.pagination;
1
package org.tela_botanica.del.client.vues.rechercheimages.pagination;
Line 2... Line 2...
2
 
2
 
Line 3... Line 3...
3
import org.tela_botanica.del.client.vues.rechercheobservations.ObservationRecherchePresenteur;
3
import org.tela_botanica.del.client.vues.rechercheimages.ImageRecherchePresenteur;
4
 
4
 
5
import com.google.gwt.event.dom.client.ClickEvent;
5
import com.google.gwt.event.dom.client.ClickEvent;
Line 29... Line 29...
29
			public void onClick(ClickEvent event) {
29
			public void onClick(ClickEvent event) {
Line 30... Line 30...
30
 
30
 
31
				int firstImage;
31
				int firstImage;
Line 32... Line 32...
32
				int lastImage;
32
				int lastImage;
33
 
33
 
Line 34... Line 34...
34
				int nbImagePerPage = ObservationRecherchePresenteur.getInstance()
34
				int nbImagePerPage = ImageRecherchePresenteur.getInstance()
35
						.getView().getNbImagesPerPage();
35
						.getView().getNbImagesPerPage();
36
 
36
 
37
				if (nbPage == 1) {
37
				if (nbPage == 1) {
38
					firstImage = 0;
38
					firstImage = 0;
Line 39... Line 39...
39
				} else {
39
				} else {
Line 40... Line 40...
40
					firstImage = ((nbPage - 1) * nbImagePerPage);
40
					firstImage = ((nbPage - 1) * nbImagePerPage);
41
				}
41
				}
Line 42... Line 42...
42
 
42
 
43
				lastImage = (nbPage - 1) * nbImagePerPage + nbImagePerPage;
43
				lastImage = (nbPage - 1) * nbImagePerPage + nbImagePerPage;
44
 
44