Skip to main content



      Home
Home » Eclipse Projects » NatTable » Autocomplition in NatCombo
Autocomplition in NatCombo [message #1651716] Thu, 05 March 2015 08:18 Go to next message
Eclipse UserFriend
I have designed Nattable wherein few cells in one column is combo editor instead of text editor. I have used ComboBoxCellEditor & comboBoxCellEditor.setFreeEdit(true) to achieve this.
Now my requirement is to show suggestions as per the text I'm entering in combo cell editor.
For Example: If my combo contains following items:
1. Jackson
2. Jackpot
3. Harry
4. Sheldon
and if I enter "J" in combo area, the natCombo should open dropdown of combo to show matching items. Like in this it should show 1st and 2nd item in the list.

Please let me know, whether such scenario is posible in NatTable.
If yes, Please advice how can I do this?
Re: Autocomplition in NatCombo [message #1651767 is a reply to message #1651716] Thu, 05 March 2015 08:52 Go to previous message
Eclipse UserFriend
NatCombo in its current state does not support such filtering logic. And I don't see a way to add such a feature without a major change. Currently the dropdown part of NatCombo is a SWT Table. This doesn't support an easy way for filtering. At least I don't know one. It would need to be changed to a JFace TableViewer which supports ViewerFilter.

Either implement your own NatCombo that uses a TableViewer instead of a Table. Modify the existing NatCombo and contribute the changes. Or try if you can implement an editor that uses a ComboViewer for example.
Previous Topic:Autocomplete feature in NatCombo
Next Topic:Sort only specific rows in nattable
Goto Forum:
  


Current Time: Thu Jun 19 18:37:19 EDT 2025

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

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

Back to the top