/** * Returns the number of records in the filtered view. * * @return the number of records in the filtered view */ public int getOutputSize() { // JW: don't need to check - but that's heavily dependent on the // implementation detail that there's always the identityFilter // (which might change any time) if (!isAssigned()) return 0; Filter last = last(); return (last == null) ? adapter.getRowCount() : last.getSize(); }
/** * returns the unfiltered data adapter size or 0 if unassigned. * * @return the unfiltered data adapter size or 0 if unassigned */ public int getInputSize() { return isAssigned() ? adapter.getRowCount() : 0; }