Skip to main content

"or"ing Filters together

1 reply [Last post]
Joined: 2006-02-21

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?


Reply viewing options

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

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.