}
protected void customizeCellRenderer(JTable table, Object value, boolean isSelected, boolean hasFocus, int rowIndex, int columnIndex) {
acquireState(table, isSelected, false, rowIndex, columnIndex);
DatasetEditorModelCell cell = (DatasetEditorModelCell) value;
DatasetEditorTable datasetEditorTable = (DatasetEditorTable) table;
if (cell != null && !cell.isDisposed()) {
DatasetEditorModelRow row = cell.getRow();
DatasetEditorColumnInfo columnInfo = cell.getColumnInfo();
boolean isLoading = datasetEditorTable.isLoading();
boolean isInserting = datasetEditorTable.isInserting();
boolean isDeletedRow = row.isDeleted();
boolean isInsertRow = row.isInsert();
boolean isCaretRow = !isInsertRow && table.getCellSelectionEnabled() && table.getSelectedRow() == rowIndex && table.getSelectedRowCount() == 1;
boolean isModified = cell.isModified();
DataGridTextAttributes attributes = getAttributes();
SimpleTextAttributes textAttributes = attributes.getPlainData(isModified, isCaretRow);
if (isSelected) {
textAttributes = attributes.getSelection();
} else if (isLoading || !datasetEditorTable.getDatasetEditor().getConnectionHandler().isConnected()) {
textAttributes = attributes.getLoadingData(isCaretRow);
} else if (isDeletedRow) {
textAttributes = attributes.getDeletedData();
} else if ((isInserting && !isInsertRow)) {
textAttributes = attributes.getReadonlyData(isModified, isCaretRow);