rowCountChangeHandlerReg = tableModel.addRowCountChangeHandler(new RowCountChangeHandler() {
public void onRowCountChange(RowCountChangeEvent event) {
int pageCount = getPageCount();
if (pageCount != oldPageCount) {
fireEvent(new PageCountChangeEvent(oldPageCount, pageCount));
oldPageCount = pageCount;
}
}
});
if (tableModel instanceof HasRowInsertionHandlers) {