public void setPageAndPageSize(int page, int size) { this.pageSize = size; startRow = size * page; updateRows();
public void setPageAndPageSize(int page, int size) throws PageOutOfRangeException { int oldStartRow = this.startRow; int oldPageSize = this.pageSize;  try { this.pageSize = size; this.startRow = size * page; updateRows(); } catch (PageOutOfRangeException e) {  this.startRow = oldStartRow; this.pageSize = oldPageSize; throw e; }
    public void setPageAndPageSize(int page, int size) {        this.pageSize = size;        startRow = size * page;        updateRows();    }