@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() ) { setNextPageButtonsDisabled( !hasNextPage() ); setFastForwardDisabled( !hasNextPages( getFastForwardPages() ) ); } }