@Override
 public void setLocale(Locale locale) {
   super.setLocale(locale);
   // Local has changed, update the Previous/Next link text.
   setLinkText(
       previousLink, Resources.getText(Resources.PaginationRenderer_previous, getLocale()));
   setLinkText(nextLink, Resources.getText(Resources.PaginationRenderer_next, getLocale()));
   resultLabel.setText(PaginationHelper.getResultsText(getController(), getLocale()));
 }
 /**
  * Update the enabled Next/Previous links + update the result label.
  *
  * @param controller
  */
 private void refreshEnabled(PageableController controller) {
   resultLabel.setText(PaginationHelper.getResultsText(controller, getLocale()));
   nextLink.setEnabled(controller.hasNextPage());
   previousLink.setEnabled(controller.hasPreviousPage());
 }