Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » CompositeMatcherEditor - how to add dropdowns to few column only?
CompositeMatcherEditor - how to add dropdowns to few column only? [message #1065248] Tue, 25 June 2013 06:17 Go to next message
Alex Kipling is currently offline Alex KiplingFriend
Messages: 260
Registered: July 2012
Senior Member
I am using the new CompositeMatcherEditor.
I would like to add the dropdowns not to all columns, but only to few.
The rest of the filters should be rendered as input fields.

Is it possible?
Re: CompositeMatcherEditor - how to add dropdowns to few column only? [message #1065259 is a reply to message #1065248] Tue, 25 June 2013 06:57 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
There is no new CompositeMatcherEditor. I assume you mean the new Excel like filter row.

I have never tested if it is possible to combine the new filter row with a normal filter row with input fields. Technically it should be possible by creating and using your own configuration for that filter row. The default configuration is in ComboBoxFilterRowConfiguration. You might need to register the editors in the filter row to different labels.
Re: CompositeMatcherEditor - how to add dropdowns to few column only? [message #1065260 is a reply to message #1065259] Tue, 25 June 2013 07:08 Go to previous messageGo to next message
Alex Kipling is currently offline Alex KiplingFriend
Messages: 260
Registered: July 2012
Senior Member
Yes, I mean the ComboBoxFilterRowHeaderComposite filter row. Thanks Dirk!

[Updated on: Tue, 25 June 2013 07:16]

Report message to a moderator

Re: CompositeMatcherEditor - how to add dropdowns to few column only? [message #1065290 is a reply to message #1065260] Tue, 25 June 2013 09:05 Go to previous messageGo to next message
Alex Kipling is currently offline Alex KiplingFriend
Messages: 260
Registered: July 2012
Senior Member
Seems, like it is impossible to apply an own IFilterStrategy when using the ComboBoxFilterRowHeaderComposite -
a new ComboBoxGlazedListsFilterStrategy<T> is created in ComboBoxFilterRowHeaderComposite and there is no way to change the strategy, to do own stuff when filters are applied.
If it is so - then this is really bad since the composite will only be limited to GlazedLists usage...
Re: CompositeMatcherEditor - how to add dropdowns to few column only? [message #1065301 is a reply to message #1065290] Tue, 25 June 2013 09:40 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
It is in the GlazedLists extension so it is limited to GlazedLists usage.
Re: CompositeMatcherEditor - how to add dropdowns to few column only? [message #1065302 is a reply to message #1065301] Tue, 25 June 2013 09:42 Go to previous messageGo to next message
Alex Kipling is currently offline Alex KiplingFriend
Messages: 260
Registered: July 2012
Senior Member
It does not have to - if there would be a possibility to add own Strategies - everyone could use it...
Re: CompositeMatcherEditor - how to add dropdowns to few column only? [message #1065306 is a reply to message #1065302] Tue, 25 June 2013 09:50 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
There is a lot of logic behind it as the filtering is inverse. But of course we could open the API, move the layer to core and hope that everyone knows what he/she does.

But of course we can't move the layer to core, as the default relies on GlazedLists and there shall be no dependency from core to an extension.

Feel free to open a ticket and submit a patch that doesn't break the architecture
Re: CompositeMatcherEditor - how to add dropdowns to few column only? [message #1065319 is a reply to message #1065306] Tue, 25 June 2013 10:16 Go to previous message
Alex Kipling is currently offline Alex KiplingFriend
Messages: 260
Registered: July 2012
Senior Member
Thnx! I will provide a patch!
Previous Topic:Auto resize Column/Row Width/Height empties table
Next Topic:Is it possible to add an SWT Widget to a Layer?
Goto Forum:
  


Current Time: Fri Apr 19 20:07:09 GMT 2024

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

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

Back to the top