예제 #1
0
 /**
  * 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();
 }
예제 #2
0
 /**
  * @param filter
  * @return returns the unfiltered data adapter size or 0 if unassigned.
  */
 int getInputSize(Filter filter) {
   Filter previous = previous(filter);
   if (previous != null) {
     return previous.getSize();
   }
   // fixed issue #64-swingx - removed precondition... (was: isAssigned())
   return getInputSize();
 }