Interface TableCellEditor
- All Superinterfaces:
CellEditor
- All Known Implementing Classes:
DefaultCellEditor
Port of
TableCellEditor. Ports (rather than
JDK-reuses per D_whitelist_porting) because getTableCellEditorComponent(JTable, Object, boolean, int, int) returns
Component — the D_event_port_policy return-type clash between java.awt.Component
and vaadinx.awt.Component. Same forced-port reason as the tree-side
TreeCellEditor, but unlike that one (a doc-stub,
since JTree in-cell editing is deferred) this interface is load-bearing: the
JTable Grid.Editor bridge invokes getTableCellEditorComponent(JTable, Object, boolean, int, int)
to obtain the editing component for a cell (see D_jtable_cell_editing in emulators/decisions.md).
DefaultCellEditor is the stock implementation (text
field / combo box / check box), mirroring DefaultCellEditor.
-
Method Summary
Modifier and TypeMethodDescriptiongetTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) Returns the component to use for editing the cell atrow/column, seeded withvalue.Methods inherited from interface CellEditor
addCellEditorListener, cancelCellEditing, getCellEditorValue, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
-
Method Details
-
getTableCellEditorComponent
Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) Returns the component to use for editing the cell atrow/column, seeded withvalue. Called by the JTable editing bridge when a cell enters edit mode; the returned component's peer is what the underlying VaadinGrid.Editorshows.
-