Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SelectionListener
SelectionListener [message #460867] Fri, 09 September 2005 09:51 Go to next message
Eclipse UserFriend
Originally posted by: osipov.appliedtech.ru

When I add SelectionListener like this to a button or anything else I have
to implement to methods. What is the difference between them?
m_buttonChooseQuery.addSelectionListener(new SelectionListener()
{

public void widgetSelected(SelectionEvent e)
{
}

public void widgetDefaultSelected(SelectionEvent e)
{

}

}
);
Re: SelectionListener [message #460886 is a reply to message #460867] Fri, 09 September 2005 13:04 Go to previous messageGo to next message
Kalman Hazins is currently offline Kalman HazinsFriend
Messages: 76
Registered: July 2009
Member
widgetSelected is for clicking it with a mouse, widgetdefaultselected is
when that button or something is the default and you hit the return key on
your keyboard.

--
HTH,
- Kalman (http://www.zikal.com/)

"Peter Osipov" <osipov@appliedtech.ru> wrote in message
news:dfrlu8$pmq$1@news.eclipse.org...
> When I add SelectionListener like this to a button or anything else I have
> to implement to methods. What is the difference between them?
> m_buttonChooseQuery.addSelectionListener(new SelectionListener()
> {
>
> public void widgetSelected(SelectionEvent e)
> {
> }
>
> public void widgetDefaultSelected(SelectionEvent e)
> {
>
> }
>
> }
> );
>
>
Re: SelectionListener [message #460911 is a reply to message #460886] Fri, 09 September 2005 13:54 Go to previous messageGo to next message
arne anka is currently offline arne ankaFriend
Messages: 133
Registered: July 2009
Senior Member
> widgetSelected is for clicking it with a mouse, widgetdefaultselected is
> when that button or something is the default and you hit the return key
> on
> your keyboard.

hm, i'm not 100% sure i understand thta correctly. how do i set a button
(or what ever listening wdget) to be the "default"?
Re: SelectionListener [message #460927 is a reply to message #460886] Mon, 12 September 2005 03:18 Go to previous message
Eclipse UserFriend
Originally posted by: osipov.appliedtech.ru

thanks a lot for your reply. :-)
Previous Topic:Solution for wrapping SWT Button Text
Next Topic:Setting the Button Background
Goto Forum:
  


Current Time: Thu Apr 25 16:13:35 GMT 2024

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

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

Back to the top