| How to fire PropertyChangeEvent? [message #463050] |
Wed, 26 October 2005 03:25  |
|
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 09:26   |
|
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 10:39   |
|
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.
|
|
|
| Re: How to fire PropertyChangeEvent? [message #463222 is a reply to message #463218] |
Tue, 01 November 2005 01:36  |
augur Messages: 25 Registered: July 2009 |
Junior Member |
|
|
Have any API can get ListenerList directly?
like composite .getChildren() etc.
"Rudolf Schmidt" <webapp@gmx.de>
??????:98412504add2852a5d0a90ac39d131d7$1@www.eclipse.org...
> 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.01600 seconds