GWT SimplePager - LastPageButton disabled?
In GWT when using SimplePager the LastPage button is disabled - but why?
See example in section: "Adding Paging Controls" http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellWidgets.html
If you copy the sample in and run it, you will see that the LastPag开发者_Python百科eButton is disabled?
Thanks
It's not the LastPageButton, but the FastForward Button, which is disabled because the constructor used to initialize the pager sets it to a value that it will be enabled if the remaining number of items is larger than 1000 (and the example contains only 200 items, just increase it to 2000 to see it). There is a LastPageButton, but in the constructor used in the example disables it. You can enable the LastPageButton by using the following constructor to initialize the pager:
public SimplePager(TextLocation location, Resources resources, boolean showFastForwardButton,
final int fastForwardRows, boolean showLastPageButton)
精彩评论