Skip to main content

"or"ing Filters together

1 reply [Last post]
maidmarian
Offline
Joined: 2006-02-21
Points: 0

I'm currently using swingx and am trying to implement a set of filters on a list that I'd like to OR the results of. I have different filters each associated with a button. I'd like the users to be allowed to click on multiple buttons, activating each of the filters and displaying the ORed results. I can't use a Pipeline cause that basically ANDs the data together.

Is there a way I'm missing that I could do this? If not, would the best way be to write my own Pipeline to create the concatenation of all the values?

Thanks!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
david_hall
Offline
Joined: 2003-06-12
Points: 0

You shouldn't need to replace the pipeline entirely. You can write a compound filter: one that takes two (or more) child filters and returns those items that pass any of the child filters.