|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 07:33
| Dirk Fauth
Registered: July 2012
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?
Powered by FUDForum
. Page generated in 0.02035 seconds