Hello, i am trying to create an editable Nattabale, i've create it successfully by following this code _812_EditableGroupBySummarySummaryRowExample, if i do a mouse click on the cell every think work fine but when i press key down or key up, the cell editor of the next cell isn't positioned correctely (on the top not in the cell).
can you help me?
Thanks in advance.
this my code :
compositeGridLayer.addConfiguration(new EditorConfiguration());
compositeGridLayer.addConfiguration(new DefaultEditBindings());
compositeGridLayer.addConfiguration(new DefaultExportBindings());
compositeGridLayer.addConfiguration(new DefaultPrintBindings());
the class EditorConfiguration :
class EditorConfiguration extends AbstractRegistryConfiguration {
@Override
public void configureRegistry(IConfigRegistry configRegistry) {
configRegistry.registerConfigAttribute(
EditConfigAttributes.CELL_EDITABLE_RULE,
IEditableRule.ALWAYS_EDITABLE);
registerEditors(configRegistry);
}
}
the methode registerEditors(configRegistry) :
public void registerEditors(IConfigRegistry configRegistry2) {
// TODO Auto-generated method stub
configRegistry.registerConfigAttribute(
CellConfigAttributes.CELL_PAINTER,
new TextPainter(),
DisplayMode.NORMAL,
"myColumn");
configRegistry.registerConfigAttribute(
EditConfigAttributes.CELL_EDITABLE_RULE,
IEditableRule.ALWAYS_EDITABLE);
configRegistry.registerConfigAttribute(
EditConfigAttributes.CELL_EDITOR,
new TextCellEditor(true, true),
DisplayMode.NORMAL,
"myColumn");
// configure to open the adjacent editor after commit
configRegistry.registerConfigAttribute(
EditConfigAttributes.OPEN_ADJACENT_EDITOR,
Boolean.TRUE,
DisplayMode.EDIT,
"myColumn");
// configure a custom message for the multi edit dialog
Map<String, Object> editDialogSettings = new HashMap<String, Object>();
editDialogSettings.put(ICellEditDialog.DIALOG_MESSAGE, "Please specify the lastname in here:");
configRegistry.registerConfigAttribute(
EditConfigAttributes.EDIT_DIALOG_SETTINGS,
editDialogSettings,
DisplayMode.EDIT,
"myColumn");
}
[Updated on: Fri, 04 September 2015 16:47]
Report message to a moderator