how to change filter list without effecting the change in event list? [message #1058992] |
Thu, 16 May 2013 03:25  |
Eclipse User |
|
|
|
Hi,
I am a bit confused about event list and filter list , if i clear filter list like filterList.clear() then event list get's also clear and show zero size, but when i apply filter using glazed list implementing IfilterStrategy interface then after filter is applied then filter list have only filter rows while event list contains all the data. Actually i want's to know a way? through which i can change filter list without having a change in the event list,
Any help will be appreciated.
Regards,
Safdar Khan
|
|
|
Re: how to change filter list without effecting the change in event list? [message #1058997 is a reply to message #1058992] |
Thu, 16 May 2013 03:33   |
Eclipse User |
|
|
|
Hi,
Seems you are not familiar with GlazedLists. For an introduction look here: http://www.glazedlists.com/
In short, the FilterList is a wrapper around the EventList, which is usually a wrapper on a Java collection. Every list operation like add(), remove(), clear() is performed down on the base list. The GlazedLists are doing transformations dependent on their scope, so the FilterList for example adds a filter transformation that removes pointers to elements in the base list, but it does not remove them from the base list. That's how a filter should work.
So the real question is, what are you trying to do? What kind of changes do you want to perform on the FilterList that should not be performed on the base list?
Greez,
Dirk
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.34186 seconds