How to fire PropertyChangeEvent? [message #463050] |
Wed, 26 October 2005 07:25 |
Eclipse User |
|
|
|
Originally posted by: webapp.gmx.de
Hi,
I want to notify some gui composites about state changes in my model
(Bean). I found the JFace ListenerList class which I may use to store
listeners in the bean and also I found PropertyChangeEvent that I could
use as message.
My question is how to fire the event? Do I have to use Display.postEvent()
or do I have to iterate over the listeners stored in the listenerslist?
Thanks, Rudolf
|
|
|
Re: How to fire PropertyChangeEvent? [message #463102 is a reply to message #463050] |
Wed, 26 October 2005 13:26 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
You have to iterate over the list and call the methods yourself.
Rudolf Schmidt wrote:
> Hi,
>
> I want to notify some gui composites about state changes in my model
> (Bean). I found the JFace ListenerList class which I may use to store
> listeners in the bean and also I found PropertyChangeEvent that I could
> use as message.
>
> My question is how to fire the event? Do I have to use
> Display.postEvent() or do I have to iterate over the listeners stored in
> the listenerslist?
>
> Thanks, Rudolf
>
>
--
Thanks,
Rich Kulp
|
|
|
|
Re: How to fire PropertyChangeEvent? [message #463218 is a reply to message #463120] |
Mon, 31 October 2005 15:39 |
Eclipse User |
|
|
|
Originally posted by: webapp.gmx.de
ListenerList is just a kind of collection that manages listeners. You
could use a plain list for that, but ListenerList for example makes sure
that a listener may be added only once.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03498 seconds