public void onEvent(Event event) { if (_rows != null && _model != null && inPagingMold()) { //theoretically, _rows shall not be null if _model is not null when //this method is called. But, just in case -- if sent manually final Paginal pgi = getPaginal(); int pgsz = pgi.getPageSize(); int ofs = pgi.getActivePage() * pgsz; if (event instanceof PagingEvent) { // Bug ZK-1696: PagingEvent have the newest paging information pgsz = ((PagingEvent) event).getPageable().getPageSize(); ofs = ((PagingEvent) event).getActivePage() * pgsz; } if (_model instanceof Pageable) { ((Pageable) _model).setPageSize(pgsz); ((Pageable) _model).setActivePage(pgi.getActivePage()); } if (_rod) { getDataLoader().syncModel(ofs, pgsz); } postOnPagingInitRender(); } if (getModel() != null || getPagingPosition().equals("both")) invalidate(); // just in case. else if (_rows != null) { _rows.invalidate(); // Bug 3218078 if (_frozen != null) _frozen.invalidate(); } }
wh.write(self.getOuterAttrs()).write(self.getInnerAttrs()).write(">"); if (self.getPagingChild() != null && self.getPagingPosition().equals("top") || self.getPagingPosition().equals("both")) { wh.write("<div id=\"").write(uuid).write("!pgit\" class=\"").write(zcls).write("-pgi-t\">") .write(self.getPagingChild()) if (self.getPagingChild() != null && self.getPagingPosition().equals("bottom") || self.getPagingPosition().equals("both")) { wh.write("<div id=\"").write(uuid).write("!pgib\" class=\"").write(zcls).write("-pgi-b\">") .write(self.getPagingChild())