• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

component for pager function

 
Ranch Hand
Posts: 308
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am new to GWT, I want to know, how to use GWT to create a pager component with the following function:
jumping to a certain page like the following:
Showing 1 to 10 of 123 records < | >| 1 | 2 |....| 12 | 13

if user press on the number, can jump to that page, if press <, jump
to previous page,if press >, jump to next page.

any sample code or existing component can be downloaded?

thanks in advance.
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What GWT version are you using? Since 2.1, GWT has a built in component called SimplePager
Check out the demo (and the source code) here
 
peter tong
Ranch Hand
Posts: 308
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Maneesh Godbole wrote:What GWT version are you using? Since 2.1, GWT has a built in component called SimplePager
Check out the demo (and the source code) here



yes, I know. but the simplePager can only allow next one page or go to the last page, it cannot jump to a certain page.
What I want is something like
<< | < | 1 | 2 | 3 | ... | 100 | 101 | 102 | > | >>

the user can jump to a certain page directly, and if the page number is too much, can show as ... in the middle.

I think standard GWT has not built in component for the pager function, but I want if there is some user which already customize the SimplePager to
fullfit the above requirement, I think the above pager function is commonly seen in website.
reply
    Bookmark Topic Watch Topic
  • New Topic