ComboBoxCellEditor List (Selection) [message #1232294] |
Thu, 16 January 2014 11:16  |
Eclipse User |
|
|
|
Hello there,
I have some special question and found nothing about it, maybe someone could enlighten me.
I have a NatTable which provides some ComboBoxCellEditor(s) with a dynamic set of values. All is displayed well and behaves like designed i think.
My need is, that if the combo shell pops up there are all values ordered in one column and i may select them by clicking on them. But I would also like like to select them when the user clicks next to one, so that currently the item itself doesn't get the selection but the line of it does.
Clicking next to it will close the combo shell without an action yet.
How do i achiev this behaviour? You could compare it the the behaviour of some Excel sheet. (Sorry for this advertising but i would like to ensure the clearence of my possition.)
Thanks in advance
p
|
|
|
|
Re: ComboBoxCellEditor List (Selection) [message #1232327 is a reply to message #1232325] |
Thu, 16 January 2014 12:42   |
Eclipse User |
|
|
|
This is the code where i define them. The provider only reimplements 'getValues()' which returns a list.
I have no multiple selection and no check boxes within these combo boxes.
configRegistry.registerConfigAttribute(CellConfigAttributes.CELL_PAINTER, new ComboBoxPainter(),
DisplayMode.SELECT, COMBO_BOX_CONFIG_LABEL);
ComboBoxCellEditor comboBoxCellEditor = new ComboBoxCellEditor(new CSMComboBoxDataProvider(), 10);
configRegistry.registerConfigAttribute(EditConfigAttributes.CELL_EDITOR, comboBoxCellEditor,
DisplayMode.SELECT, COMBO_BOX_EDITOR_CONFIG_LABEL);
configRegistry.registerConfigAttribute(EditConfigAttributes.CELL_EDITOR, comboBoxCellEditor, DisplayMode.EDIT,
COMBO_BOX_EDITOR_CONFIG_LABEL);
configRegistry.registerConfigAttribute(EditConfigAttributes.CELL_EDITABLE_RULE, getEditRule(),
DisplayMode.EDIT, COMBO_BOX_CONFIG_LABEL);
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.13334 seconds