|
Presenting filter options to the user |
Top Previous Next |
We have implemented two classes for presenting filter options to users: FilterTablePanel and FilterHeaderModel. FilterTablePanel presents filter options in a JPanel whereas FilterHeaderModel provides a filter component on each column. Both these classes are responsible for constructing a FilterModelEvent, which is propagated to a FilterModel's list of FilterModelListeners. FilterTableModel, being a FilterModelListener, receives this event and filters the data accordingly.