GWT celltable Simple pager Next and previous buttons

Posted by Saritha on Stack Overflow See other posts from Stack Overflow or by Saritha
Published on 2012-08-29T09:33:49Z Indexed on 2012/08/29 9:38 UTC
Read the original article Hit count: 153

Filed under:
|
|

I am working on a CellTable with a SimplePager. My paging works fine in the sense when i set the page size to be 5 only 5 records are being displayed. My question is that do next and previous buttons come by default or do we have to configure them. I have seen the show case example code and i do not see any external configurations . my SimplePager code is as follows:

//create pager

SimplePager.Resources resources = GWT.create(SimplePager.Resources.class); 
             SimplePager simplePager = new SimplePager(TextLocation.CENTER, resources , false, 0, true);
             simplePager.setDisplay(cellTableSearchResults);
             simplePager.setPageSize(5);

             // create data provider
             ListDataProvider<GridDTO> dataProvider = new ListDataProvider<GridDTO>();
             dataProvider.addDataDisplay(cellTableSearchResults);
             dataProvider.setList(components);

Please help.

© Stack Overflow or respective owner

Related posts about gwt

Related posts about celltable