A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
how to enable the last button of simplepager?
Joined: Mar 15, 2008
Feb 02, 2012 03:27:29
follow the example in
and find that the last button >> is unenabled, so user need to step page by page until the end.
I want to know how to enable the last button of simplepager?
I see the showcase source and there is one statement
// Create a Pager to control the table. SimplePager.Resources pagerResources = GWT.create(SimplePager.Resources.class); pager = new SimplePager(TextLocation.CENTER, pagerResources, false, 0, true);
I know the last parameter cause the last button to show, but what is SimplePager.Resources? any example to create it? or could I pass a null to it if I have not any SimplePager.Resources?
Joined: Jun 28, 2009
Feb 09, 2012 00:48:44
Checkout the other overloaded constructors for simplePager. Below one give access you enable or disable fastforward button.
public SimplePager(TextLocation location, Resources resources, boolean showFastForwardButton, final int fastForwardRows, boolean showLastPageButton)
The resources are here the the Images and Css resources that are used by simplePager.
I agree. Here's the link:
subject: how to enable the last button of simplepager?
CellTable and Pager: shows all data instead of limited number of items per page
parent and child page - Refresh Problem?
Using pager with input fields
Creation of an account in html
component for pager function
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014