Hi,

See
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/cellview/client/SimplePager.javathese
methods are defined in a super class.

Juan

2012/10/16 dafintrash <[email protected]>

> 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.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
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.

Reply via email to