Difference between addListener() and addSelectionListener()? [message #456848] |
Fri, 10 June 2005 21:40 |
Eclipse User |
|
|
|
Originally posted by: doug-list.threepenny.net
Anyone know what the difference is between
addListener(SWT.Selection, ...) and
addSelectionListener(...)?
I always assumed these were equivalent, but I just discovered that when
embedding a button in a table the first form fires but the second doesn't.
So clearly there's a difference.
Thanks for any insights,
Doug
|
|
|
|
Re: Difference between addListener() and addSelectionListener()? [message #456893 is a reply to message #456892] |
Sat, 11 June 2005 05:25 |
Eclipse User |
|
|
|
Originally posted by: doug-list.threepenny.net
This article says that SelectionListener() is implemented in terms of
the primitive SWT.Selection event -- which is as you'd expect.
So given that I suppose this means there's a bug in this translation
when embedding a button in a table because only the untyped
SWT.Selection event fires and the typed form does nothing.
Doug
Michael Cheung wrote:
> http://www.awprofessional.com/articles/article.asp?p=354574& amp;seqNum=3
>
> The different is Untyped and typed listeners
>
> "Doug Pearson" <doug-list@threepenny.net> wrote in message
> news:d8d1bd$84j$1@news.eclipse.org...
>
>>Anyone know what the difference is between
>> addListener(SWT.Selection, ...) and
>> addSelectionListener(...)?
>>
>>I always assumed these were equivalent, but I just discovered that when
>>embedding a button in a table the first form fires but the second doesn't.
>>
>>So clearly there's a difference.
>>
>>Thanks for any insights,
>>
>>Doug
>>
>
>
>
|
|
|
Re: Difference between addListener() and addSelectionListener()? [message #456894 is a reply to message #456892] |
Sat, 11 June 2005 05:26 |
Eclipse User |
|
|
|
Originally posted by: doug-list.threepenny.net
This article says that SelectionListener() is implemented in terms of
the primitive SWT.Selection event -- which is as you'd expect.
So given that I suppose this means there's a bug in this translation
when embedding a button in a table because only the untyped
SWT.Selection event fires and the typed form does nothing.
Doug
Michael Cheung wrote:
> http://www.awprofessional.com/articles/article.asp?p=354574& amp;seqNum=3
>
> The different is Untyped and typed listeners
>
> "Doug Pearson" <doug-list@threepenny.net> wrote in message
> news:d8d1bd$84j$1@news.eclipse.org...
>
>>Anyone know what the difference is between
>> addListener(SWT.Selection, ...) and
>> addSelectionListener(...)?
>>
>>I always assumed these were equivalent, but I just discovered that when
>>embedding a button in a table the first form fires but the second doesn't.
>>
>>So clearly there's a difference.
>>
>>Thanks for any insights,
>>
>>Doug
>>
>
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03979 seconds