private void checkDependencies() {
table.cancelEdit();
int row = table.getSelectedRow();
if (row > -1) {
DcFieldDefinition definition = getDefinition(row);
DcField field = (DcField) table.getValueAt(row, _COL_FIELD, true);
if (field.isUiOnly() || field.getIndex() == DcObject._ID) {
table.setValueAt(Boolean.FALSE, row, _COL_REQUIRED);
table.setValueAt(Boolean.FALSE, row, _COL_UNIQUE);
if (field.getValueType() == DcRepository.ValueTypes._PICTURE)
table.setValueAt(Boolean.FALSE, row, _COL_DESCRIPTIVE);
}
if (DcModules.get(field.getModule()).getType() == DcModule._TYPE_ASSOCIATE_MODULE) {
if (field.getIndex() == DcAssociate._A_NAME)
table.setValueAt(Boolean.TRUE, row, _COL_DESCRIPTIVE);
else
table.setValueAt(Boolean.FALSE, row, _COL_DESCRIPTIVE);
}
if (!definition.isEnabled()) {
table.setValueAt(Boolean.FALSE, row, _COL_DESCRIPTIVE);
table.setValueAt(Boolean.FALSE, row, _COL_REQUIRED);
table.setValueAt(Boolean.FALSE, row, _COL_UNIQUE);
}
}