Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to fire PropertyChangeEvent?
How to fire PropertyChangeEvent? [message #463050] Wed, 26 October 2005 07:25 Go to next message
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 Go to previous messageGo to next message
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 #463120 is a reply to message #463050] Thu, 27 October 2005 00:00 Go to previous messageGo to next message
augur is currently offline augur
Messages: 25
Registered: July 2009
Junior Member
Listenerslist is a new concept to me.
How to get it?
Forgive my lacking of knowledge.
Thanks in advance.
"Rudolf Schmidt" <webapp@gmx.de>
??????:86c096a1aed0e1566f7657e666ad37a4$1@www.eclipse.org...
> 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 #463218 is a reply to message #463120] Mon, 31 October 2005 15:39 Go to previous messageGo to next message
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.
Re: How to fire PropertyChangeEvent? [message #463222 is a reply to message #463218] Tue, 01 November 2005 06:36 Go to previous message
augur is currently offline 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.
Previous Topic:How to start swt project? How to use maven on swt project?
Next Topic:KTable or SWT Table or ...
Goto Forum:
  


Current Time: Fri Oct 24 09:43:59 GMT 2014

Powered by FUDForum. Page generated in 0.02062 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software