Why must press "Enter" for ComboBoxCellEditor? [message #510162] |
Tue, 26 January 2010 15:08 |
Eclipse User |
|
|
|
Originally posted by: yoduderoo.netscape.net
Hi,
I have a table with ComboBoxCellEditor cells. When the user selects an
option from the drop-down list, theuser must then press "Enter".
Is there a way to use ComboBoxCellEditor such that the user must not
press "Enter". That is, the selection is equivalent to select+enter?
Thanks, y
|
|
|
Re: Why must press "Enter" for ComboBoxCellEditor? [message #511006 is a reply to message #510162] |
Fri, 29 January 2010 14:10 |
Eclipse User |
|
|
|
Originally posted by: yoduderoo.netscape.net
I solved it by the following, although I am not sure if it is the
"right" way:
Control control = comboboxEditor.getControl();
CCombo c = (CCombo) control;
c.addSelectionListener(new SelectionListener() {
public void widgetDefaultSelected(SelectionEvent e) { }
public void widgetSelected(SelectionEvent e) {
doSomething();
}
});
Yodude wrote:
> Hi,
> I have a table with ComboBoxCellEditor cells. When the user selects an
> option from the drop-down list, theuser must then press "Enter".
>
> Is there a way to use ComboBoxCellEditor such that the user must not
> press "Enter". That is, the selection is equivalent to select+enter?
>
> Thanks, y
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03235 seconds