@Override protected final JBTableRowEditor getRowEditor(final int row) { JBTableRowEditor editor = getRowEditor(getRowItem(row)); editor.addDocumentListener(new JBTableRowEditor.RowDocumentListener() { @Override public void documentChanged(DocumentEvent e, int column) { if (String.class.equals(myParametersTableModel.getColumnClass(column))) { myParametersTableModel.setValueAtWithoutUpdate(e.getDocument().getText(), row, column); } updateSignature(); } }); return editor; }
/** * @deprecated override {@link #createParametersListTable} instead. */ @Deprecated @Nullable protected JBTableRowEditor getTableEditor(JTable table, ParameterTableModelItemBase<ParamInfo> item) { return null; }
@NotNull protected abstract JBTableRowEditor getRowEditor(ParameterTableModelItemBase<ParamInfo> item);
@Nullable protected JBTableRowEditor getTableEditor(JTable table, ParameterTableModelItemBase<ParamInfo> item) { return null; }