This week's book giveaway is in the
We're giving away four copies of
Node.js in Action
and have Mike Cantelon, Marc Harter, T.J. Holowaychuk and Nathan Rajlich on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Node.js in Action
this week in the
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.
subject: how to enable the last button of simplepager?
Using pager with input fields
parent and child page - Refresh Problem?
Creation of an account in html
component for pager function
CellTable and Pager: shows all data instead of limited number of items per page
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014