public class SelectValueFilter extends GuiDataFilter
| Constructor and Description |
|---|
SelectValueFilter(java.lang.String field,
java.util.Collection<DataRecord> recs)
Instantiates a new SelectValueFilter.
|
SelectValueFilter(java.lang.String field,
java.util.Collection<DataRecord> recs,
java.lang.String label)
Instantiates a new SelectValueFilter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(DataRecord rec)
Return whether the DataRecord is accepted by this filter.
|
javax.swing.JComponent |
getComponent()
Return the Graphical User Interface component used for interacting with
this DataFilter.
|
java.util.Set<java.lang.Comparable<?>> |
getSelected()
Gets the set of selected field values
|
addChangeListener, fireStateChanged, removeChangeListenerfilterRecordspublic SelectValueFilter(java.lang.String field,
java.util.Collection<DataRecord> recs)
field - the field to select values on.recs - the set of DataRecords.public SelectValueFilter(java.lang.String field,
java.util.Collection<DataRecord> recs,
java.lang.String label)
field - the field to select values on.recs - the set of DataRecords.label - the label displayed on the componentpublic boolean accept(DataRecord rec)
accept in class DataFilterrec - the data record to match.public javax.swing.JComponent getComponent()
getComponent in class GuiDataFilterpublic java.util.Set<java.lang.Comparable<?>> getSelected()