code: public void reset(int resultCount, int pageSize, boolean fireChanged) {
  
          m_lastPage = resultCount == 0 ? 0 : (resultCount - 1) / pageSize;
          m_resultCount = resultCount;
          m_pageSize = pageSize;
          setPage(0, false);
          updateButtons();
          if (fireChanged) {
              firePageChanged(0);
          }
      }
docs: Resets the paging controls (used when the size of the underlying list changes).<p>
  
  @param resultCount total number of results
  @param pageSize size of a page
  @param fireChanged true if the listeners should be notified