Exemplo n.º 1
0
 private void updateFilters() {
   List<RowFilter<Object, Object>> filters = new ArrayList<RowFilter<Object, Object>>(2);
   if (clientFilter != null) {
     filters.add(clientFilter);
   }
   if (numberFilter != null) {
     filters.add(numberFilter);
   }
   if (fromDateFilter != null) {
     filters.add(fromDateFilter);
   }
   if (toDateFilter != null) {
     filters.add(toDateFilter);
   }
   RowFilter<Object, Object> comboFilter = RowFilter.andFilter(filters);
   invoiceTable.setRowFilter(comboFilter);
 }
Exemplo n.º 2
0
 public void clearFilters() {
   invoiceTable.setRowFilter(null);
 }