textField.finishedEdit();
if ((row == -1) || (col == -1)) {
return;
}
FieldName fieldName = RowHeader.this.recordFieldModel.getHasFieldName(row);
if (!textField.isValidFieldName()) {
setValueAt(fieldName.getCalSourceForm(), row, col);
return;
}
String newFieldNameAsString = textField.getText();
if (newFieldNameAsString.equals(fieldName.getCalSourceForm())) {
return;
}
RowHeader.this.headerOwner.renameField(fieldName, FieldName.make(newFieldNameAsString));
RowHeader.this.recordEditor.refreshDisplay();