}
protected void onDetach() {
+ rowRequestHandler.cancel();
super.onDetach();
// ensure that scrollPosElement will be detached
if (scrollPositionElement != null) {
.setReqFirstRow(tBody.getLastRendered() + 1);
rowRequestHandler
.setReqRows((int) (pageLength * CACHE_RATE));
- rowRequestHandler.deferRowFetch();
+ rowRequestHandler.deferRowFetch(0);
}
}
});
private int reqFirstRow = 0;
private int reqRows = 0;
+
public void deferRowFetch() {
+ deferRowFetch(250);
+ }
+
+ public void deferRowFetch(int msec) {
if (reqRows > 0 && reqFirstRow < totalRows) {
- schedule(250);
+ schedule(msec);
// tell scroll position to user if currently "visible" rows are
// not rendered