Your tip could use some clarification as the SimplePager class doesn't have
the following methods: setPrevPageButtonsDisabled,
setNextPageButtonsDisabled, setFastForwardDisabled.
On Monday, August 27, 2012 4:11:25 AM UTC+3, Juan Pablo Gardella wrote:
>
> Hi,
>
> There is a bug with SimplePager that enable go to next page in the last
> page (an must be disabled). Well, after some debugging if I change the
> method onRangeOrRowCountChanged() in this way works well.
>
> @Override
> protected void onRangeOrRowCountChanged() {
> HasRows display = getDisplay();
> label.setText(createText());
>
> // Update the prev and first buttons.
> setPrevPageButtonsDisabled(!hasPreviousPage());
>
> // Update the next and last buttons.
> //if (isRangeLimited() || !display.isRowCountExact()) {
> if (isRangeLimited() || *display.isRowCountExact()*) {
> setNextPageButtonsDisabled(!hasNextPage());
> setFastForwardDisabled(!hasNextPages(getFastForwardPages()));
> }
> }
>
> As see, I remove "!" in display.isRowCountExact() and works. Hope helps
> someone.
>
> Juan
>
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/pnTXCInn1bwJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.