[SOLVED] CellEditor in a column header? [message #1123149] |
Wed, 02 October 2013 08:44 |
Jens Rabe Messages: 81 Registered: September 2013 |
Member |
|
|
I need a combo box cell editor in a column header of a NatTable. I registered it as I would register it for a table body, however on clicking the cell, the default behaviour is triggered, i.e., instead of popping up a combo box the column is selected. What am I missing here?
[Updated on: Wed, 02 October 2013 09:16] Report message to a moderator
|
|
|
|
|
|
Re: CellEditor in a column header? [message #1123174 is a reply to message #1123164] |
Wed, 02 October 2013 09:15 |
Jens Rabe Messages: 81 Registered: September 2013 |
Member |
|
|
I got it to work adding it to the column header layers like this:
columnHeaderLayerStack.addConfiguration(new DefaultEditBindings() {
@Override
public void configureUiBindings(final UiBindingRegistry uiBindingRegistry) {
uiBindingRegistry.registerSingleClickBinding(
new CellEditorMouseEventMatcher(GridRegion.COLUMN_HEADER), new MouseEditAction());
}
});
Now I can add labels to the column header cells and add the editors via the config registry as if I would add them to the body cells.
[Updated on: Wed, 02 October 2013 09:18] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03518 seconds