dcsimg
Selection in Tables
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Luis_Ortiz
Posted On:   Saturday, December 30, 2006 05:45 PM

Hi. I'm working with a SWT Table. The selection style is SWT.SINGLE | SWT.FULL_SELECTION because I want just one row selected (at most). I want to receive notifications in the following situations: 1. When a row is selected (via the GUI or code). 2. When the selection is changed (via the GUI or code). 2. When the selection gets empty (via the GUI or code). Currently I'm doing this: table.addSelectionListener(...) but this listener does the following things: 1. Is not notified when the selection gets empty. 2. If a row is selected and the user clicks on it, the listener is notified (t   More>>

Hi.



I'm working with a SWT Table.



The selection style is SWT.SINGLE | SWT.FULL_SELECTION because I want just one row selected (at most).



I want to receive notifications in the following situations:



1. When a row is selected (via the GUI or code).

2. When the selection is changed (via the GUI or code).

2. When the selection gets empty (via the GUI or code).



Currently I'm doing this: table.addSelectionListener(...)

but this listener does the following things:

1. Is not notified when the selection gets empty.

2. If a row is selected and the user clicks on it, the listener is notified (this is bad, because the selection didn't change).

3. It isn't notified when the selection is done by the program.





Help please!!!!

   <<Less
About | Sitemap | Contact