Exemple #1
0
  /**
   * 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);
  }
  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);
  }