package com.onaro.util.jfc.tables.filter; import java.text.Format; /** * String filter implementation which passes the table value through * a formatter before applying the filter on it. */ public class FormattedStringFilter extends StringFilter { protected final Format format; public FormattedStringFilter(Format format) { this.format = format; } @Override public boolean isAccepted(Object value) { if (value != null) { value = format.format(value); } return super.isAccepted(value); } }