code: protected void updateUi() {
          pageSelection.updatePageNumber(currentPage);
          pageSelection.updateTotalPages(getTotalPages());
  
          // Action label (current selection) in either the form "x-y of z" or "y of z" (when page has only 1 record)
          int firstRow = offset + 1;
          int lastRow = (isExcess() & isLastPage()) ? totalRows : (offset + limit);
          actionsPanel.getActionLabel().setText((firstRow == lastRow ? lastRow : firstRow + "-" + lastRow) + " of " + totalRows);
  
          actionsPanel.getIconNext().setEnabled(true);
          actionsPanel.getIconPrev().setEnabled(true);
  
          if (!isNext()) {
              actionsPanel.getIconNext().setEnabled(false);
          }
  
          if (!isPrevious()) {
              actionsPanel.getIconPrev().setEnabled(false);
          }
      }
docs: Set and update the ui fields of the pager after the datasource load callback