Most cell renderers, especially the newer ones like the Combobox cell renderer always have the same patterns.
- Introduce
AbstractCanvasCellRenderer class that already supports common actions
- Every cell should have an additional
options field that is currently in most cell renderer values included
- Remove
editable fields from cell renderer options
- Instead: introduce cell renderers solely for editing like a
TextEditorCellRenderer that will render a text field.
- A global event listener is to be provided at the
TableEngine options where you can defined what happens when a cell is double clicked for example
- When a cell is double clicked the users of the library are able to exchange the cell renderer for example for a double-clicked text cell, to the text editor cell renderer and set the editor options to replace the editor again with the previous renderer when done
- Update cell renderer documentation
Refactoring checklist
To-Do
Most cell renderers, especially the newer ones like the Combobox cell renderer always have the same patterns.
AbstractCanvasCellRendererclass that already supports common actionsoptionsfield that is currently in most cell renderer values includededitablefields from cell renderer optionsTextEditorCellRendererthat will render a text field.TableEngineoptions where you can defined what happens when a cell is double clicked for exampleRefactoring checklist
To-Do