Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » ComboBoxCellEditor List (Selection)
ComboBoxCellEditor List (Selection) [message #1232294] Thu, 16 January 2014 16:16 Go to next message
prototyp 144 is currently offline prototyp 144Friend
Messages: 6
Registered: January 2014
Junior Member
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 #1232325 is a reply to message #1232294] Thu, 16 January 2014 17:38 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
Do you have multiple selection via checkboxes or of what kind of combobox configuration are you talking?
Re: ComboBoxCellEditor List (Selection) [message #1232327 is a reply to message #1232325] Thu, 16 January 2014 17:42 Go to previous messageGo to next message
prototyp 144 is currently offline prototyp 144Friend
Messages: 6
Registered: January 2014
Junior Member
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);
Re: ComboBoxCellEditor List (Selection) [message #1232338 is a reply to message #1232327] Thu, 16 January 2014 18:19 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
Well I would need to look at the behaviour. I always thought it behaves that way, but maybe something is wrong or the e is a special reason. Technically your only option to change the behaviour is to implement your own editor if the behaviour is as it is.

I was working a lot on the combo box to add support for multiple selection and stuff. So hopefully it works as designed. Will check tomorrow.
Re: ComboBoxCellEditor List (Selection) [message #1232400 is a reply to message #1232338] Thu, 16 January 2014 21:39 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
Ok, got it. In the current implementation the Table that builds the dropdown is in list mode. That means only TableItems are added. They keep their initial width and it is not possible to change this afterwards.

Modifying this to add a TableColumn and perform the necessery resize operations should solve that.

Could you please create a ticket so we are able to track the issue and the solution in Bugzilla?
Re: ComboBoxCellEditor List (Selection) [message #1232558 is a reply to message #1232400] Fri, 17 January 2014 07:51 Go to previous message
prototyp 144 is currently offline prototyp 144Friend
Messages: 6
Registered: January 2014
Junior Member
The Bug (https://bugs.eclipse.org/bugs/show_bug.cgi?id=425953) is created. Thanks for your support.
Previous Topic:ImageComboBox
Next Topic:grid scrollbar issue
Goto Forum:
  


Current Time: Sat Apr 27 01:31:04 GMT 2024

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

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

Back to the top