}
@Override
public void setValueAt(Object aValue, int row, int col) {
try {
DangerServiceData data = dangerServices.get(row);
if (col == COL_DS_DESCRIPTION) {
String description = data.getDescription();
try {
data.setDescription(aValue.toString());
dangerServices.append(data);
} catch (ClipsException ex) {
data.setDescription(description);
MessageBox.showException(ex);
}
}
if (col == COL_DS_SPECIALITY) {
DirectorySpecialityItem speciality = data.getSpeciality();
try {
data.setSpeciality((DirectorySpecialityItem) aValue);
dangerServices.append(data);
} catch (ClipsException ex) {
data.setSpeciality(speciality);
MessageBox.showException(ex);
}
}
} catch (ClipsException ex) {
MessageBox.showException(ex);