}
@Override
protected void onRangeOrRowCountChanged() {
// Assumes a page start index of 0.
HasRows display = getDisplay();
int pageSize = display.getVisibleRange().getLength();
boolean hasLess = pageSize > increment;
boolean hasMore = !display.isRowCountExact()
|| pageSize < display.getRowCount();
showLessButton.setVisible(hasLess);
showMoreButton.setVisible(hasMore);
layout.setText(0, 1, (hasLess && hasMore) ? " | " : "");
}