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 02:17 Go to next message
Alex Kipling is currently offline Alex Kipling
Messages: 250
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 02:57 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk Fauth
Messages: 1255
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 03:08 Go to previous messageGo to next message
Alex Kipling is currently offline Alex Kipling
Messages: 250
Registered: July 2012
Senior Member
Yes, I mean the ComboBoxFilterRowHeaderComposite filter row. Thanks Dirk!

[Updated on: Tue, 25 June 2013 03: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 05:05 Go to previous messageGo to next message
Alex Kipling is currently offline Alex Kipling
Messages: 250
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 05:40 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk Fauth
Messages: 1255
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 05:42 Go to previous messageGo to next message
Alex Kipling is currently offline Alex Kipling
Messages: 250
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 05:50 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk Fauth
Messages: 1255
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 06:16 Go to previous message
Alex Kipling is currently offline Alex Kipling
Messages: 250
Registered: July 2012
Senior Member
Thnx! I will provide a patch!
Previous Topic:Is it possible to add an SWT Widget to a Layer?
Next Topic:Auto resize Column/Row Width/Height empties table
Goto Forum:
  


Current Time: Fri Aug 22 09:55:13 EDT 2014

Powered by FUDForum. Page generated in 0.02831 seconds