@Override
        public RowFilter getFilter(final IFilterEditor ed) {
          final int index = ed.getModelIndex();
          final Pattern pattern = (Pattern)choice;
          return new RowFilter() {
            @Override
            public boolean include(Entry entry) {
              Object o = entry.getValue(index);
              if (o == null) {
                return false;
              }
              Format fmt = ed.getFormat();
              String s = (fmt == null) ? o.toString() :
                         fmt.format(o);
              return pattern.matcher(s).matches();
            }
          };
        }
@Override
        public RowFilter getFilter(final IFilterEditor ed)