예제 #1
0
 protected void handleTableFilterEvent(TableColumnFilterEvent e, String id)
     throws ProcessingException {
   switch (e.getType()) {
     case TableColumnFilterEvent.TYPE_FILTER_ADDED:
     case TableColumnFilterEvent.TYPE_FILTER_CHANGED:
     case TableColumnFilterEvent.TYPE_FILTER_REMOVED:
     case TableColumnFilterEvent.TYPE_FILTERS_RESET:
       storeColumnFilterState(e.getTable(), id);
       break;
   }
 }
예제 #2
0
 @Override
 public void tableColumnFilterChanged(TableColumnFilterEvent e) throws ProcessingException {
   if (!m_active) {
     e.getColumnFilterManager().removeListener(m_tableColumnFilterListener);
     return;
   }
   String id = m_tableToIdentifierMap.get(e.getTable());
   if (id != null) {
     try {
       handleTableFilterEvent(e, id);
     } catch (Throwable t) {
       LOG.warn("table filter event " + e, t);
     }
   }
 }