Setting source of SelectionEvent [message #448413] |
Sat, 08 January 2005 15:58 |
Eclipse User |
|
|
|
Originally posted by: fleque.users.NoSpam.sourceforge.net
Hi all,
I'm trying to implement a Composite accepting and notifying
SelectionListeners. So far so good, but I'm not able to instantiate a
SelectionEvent and set its source.
Is there a way?
Regards Alex
|
|
|
|
Re: Setting source of SelectionEvent [message #448769 is a reply to message #448762] |
Thu, 13 January 2005 20:51 |
Eclipse User |
|
|
|
Originally posted by: fleque.users.NoSpam.sourceforge.net
Thanks for your answer Grant,
I had a look at this possibility (and some implementations of Widgets)
and found the ?prefered? way to add listeners is by adding a
TypedListener. I can do that in my Composite but can not remove it as I
can not access the package-visible member of Widget eventTable to invoke
unhook. Is there an other way to remove the listener ??
Regards Alex
Grant Gayed wrote:
> Alex,
>
> You just create a regular Event object, set its widget field, and send it
> with Widget.notifyListeners(SWT.Selection, yourEvent).
>
> Grant
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.07557 seconds