Interface TableCellEditor

All Superinterfaces:
CellEditor
All Known Implementing Classes:
DefaultCellEditor

public interface TableCellEditor extends CellEditor
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 Details

    • getTableCellEditorComponent

      Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
      Returns the component to use for editing the cell at row/column, seeded with value. Called by the JTable editing bridge when a cell enters edit mode; the returned component's peer is what the underlying Vaadin Grid.Editor shows.