コード例 #1
0
ファイル: ListboxDataLoader.java プロジェクト: dije/zk
  /**
   * Retrieves the children available at client with more control.
   *
   * <p>Derived class shall override this method rather than {@link #getAvailableAtClient()}.
   *
   * @param itemOnly whether to return only {@link Listitem} and derives.
   * @since 5.0.10
   */
  protected Set<? extends Component> getAvailableAtClient(boolean itemOnly) {
    if (!isCropper()) return null;

    final Paginal pgi = _listbox.getPaginal();
    int pgsz = pgi.getPageSize();
    int ofs = pgi.getActivePage() * pgsz;
    return getAvailableAtClient(ofs, pgsz, itemOnly);
  }
コード例 #2
0
  public Set getAvailableAtClient() {
    if (!isCropper()) return null;

    final Paginal pgi = _listbox.getPaginal();
    int pgsz = pgi.getPageSize();
    int ofs = pgi.getActivePage() * pgsz;
    return getAvailableAtClient(ofs, pgsz);
  }