|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Multiple FiltersHi,
I am building a trade blotter, a GUI that displays trades taken from a MySQL database, with one trade per row, including information such as date, amount, currency, etc. I would like to be able to filter by multiple criteria. I am using glazed lists and have sorting and single filtering working. I implement a class that extends AbstractMatcherEditor and use another class that implements Matcher to do the filtering decisions. I'm just not sure how to do multiple filtering, where I filter first by amount, per se, and then by date, to be left with only a particular amount on a particular date. Currently doing this would cause filtering by amount and then filtering by date, basically losing the amount information. Any help is greatly appreciated. Thank you -Victor Weinblatt |
|
|
Re: Multiple FiltersHi Victor -
Take a look at CompositeMatcherEditor. It will make it possible to do what you want. Rob
On Mon, Jun 8, 2009 at 10:32 AM, vmw3v <vmw3v@...> wrote:
|
|
|
Re: Multiple FiltersRob,
Thanks for the reply, but I'm a little lost. If I make a CompositeMatcherEditor of MatcherEditors, how do I call fireChanged on them in order to make my multiple Matchers? Right now, I have it that if you click a cell and right click and then choose "equal to", for example, the MatcherEditor will call fireChanged(new Matcher(...)); whose matches() function will compare equality for this value against all other values in the column. Doing this a second time, however, will compare the newly selected value against the entire original table, not the currently filtered one. Thanks again -Victor Weinblatt |
| Free embeddable forum powered by Nabble | Forum Help |