Camera camera = cameras.get(rowIndex);
if (columnIndex == 1) {
camera.setLooking((Looking) aValue);
}
else if (columnIndex == 2) {
HeadCellValue value = (HeadCellValue) aValue;
if (camera.getHead() == null) {
Configuration.get().getMachine().removeCamera(camera);
}
else {
camera.getHead().removeCamera(camera);
}
if (value.getHead() == null) {
Configuration.get().getMachine().addCamera(camera);
}
else {
value.getHead().addCamera(camera);
}
camera.setHead(value.getHead());
}
configuration.setDirty(true);
}
catch (Exception e) {
// TODO: dialog, bad input