Package org.zkoss.zul.ext

Examples of org.zkoss.zul.ext.Paginal


   */
  public void setActivePage(Treeitem item) {
    if (item.isVisible() && item.getTree() == this && isVisible()) {
      int index = getVisibleIndexOfItem(item);
      if (index != -1) {
        final Paginal pgi = getPaginal();
        int pg = index / pgi.getPageSize();
        if (pg != getActivePage())
          setActivePage(pg);
      }
       
    }
View Full Code Here


              (Treeitem)selItems.iterator().next(): null;
          selectItem(item);
        } else {
          int from, to;
          if (paging) {
            final Paginal pgi = getPaginal();
            int pgsz = pgi.getPageSize();
            from = pgi.getActivePage() * pgsz;
            to = from + pgsz; //excluded
          } else {
            from = to = 0;
          }

View Full Code Here

    if (count != 0) {
      _visibleItemCount += count;
      final Grid grid = getGrid();
      if (grid != null) {
        if (grid.inPagingMold()) {
          final Paginal pgi = grid.getPaginal();
          pgi.setTotalSize(grid.getDataLoader().getTotalSize());
          if (grid.getModel() != null)
            grid.invalidate();
          else {
            invalidate();
            grid.getDataLoader().updateModelInfo();
View Full Code Here

      if (_count >= _grid.getPaginal().getPageSize()) {
        return false;
      }

      if (_count == 0) {
        final Paginal pgi = _grid.getPaginal();
        int begin = pgi.getActivePage() * pgi.getPageSize();
        for (int i = 0; i < begin && _it.hasNext();) {
          getVisibleRow((Row)_it.next());
          i++;
        }
      }
View Full Code Here

TOP

Related Classes of org.zkoss.zul.ext.Paginal

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.