Property Changes on EventList / EventLayer working for adding/removing list elements onlyhttps://www.eclipse.org/forums/index.php/mv/msg/399047/940113/#msg_940113
How do I change this behavior, that the changes are made as soon as the property change has been propagated?

]]>Michi Classen2012-10-11T10:24:23-00:00Re: Property Changes on EventList / EventLayer working for adding/removing list elements onlyhttps://www.eclipse.org/forums/index.php/mv/msg/399047/940127/#msg_940127
Dirk Fauth2012-10-11T10:38:55-00:00Re: Property Changes on EventList / EventLayer working for adding/removing list elements onlyhttps://www.eclipse.org/forums/index.php/mv/msg/399047/940131/#msg_940131
Dirk Fauth2012-10-11T10:42:03-00:00Re: Property Changes on EventList / EventLayer working for adding/removing list elements onlyhttps://www.eclipse.org/forums/index.php/mv/msg/399047/940135/#msg_940135
- to propagate the add/remove list elements events: using the event list and add/remove elements on it
- to propagate the content changes: using the underlying data model on which the GlazedListsEventlayer is listening]]>Michi Classen2012-10-11T10:47:14-00:00Re: Property Changes on EventList / EventLayer working for adding/removing list elements onlyhttps://www.eclipse.org/forums/index.php/mv/msg/399047/940182/#msg_940182
sorry as I haven't used the automatic update feature yet, I missed something.

Yes, to add/remove elements from the list you should use the EventList. This way the events are fired by GlazedLists which are then handled by the GlazedListsEventLayer.
The GlazedListsEventLayer is itself a PropertyChangeListener. So you should add it to the model so the property changes can be handled by GlazedLists.

GlazedLists are of course only able to fire events regarding changes to the list, like adding and removing elements. It doesn't know about the elements it contains.
Only the model elements itself can tell the outside world that something has changed, so they need to be able to fire PropertyChangeEvents. The GlazedListsEventLayer as a PropertyChangeListener then needs to be added to the model elements so it gets informed about the property changes.
Looking at the architecture there from a distance, this is the only way to do it at the moment.

Have a look at BlinkingGlazedListExample. There you should find an example for what you are looking for.