Multiple Filters

View: New views
3 Messages — Rating Filter:   Alert me  

Multiple Filters

by vmw3v :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

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 Filters

by Rob Eden :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi 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:

Hi,

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

--
View this message in context: http://www.nabble.com/Multiple-Filters-tp23926363p23926363.html
Sent from the GlazedLists - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...



Re: Multiple Filters

by vmw3v :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Rob,

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