// TODO: dialog, bad input
}
}
public Object getValueAt(int row, int col) {
Placement placement = board.getPlacements().get(row);
Location loc = placement.getLocation();
switch (col) {
case 0:
return placement.getId();
case 1:
return placement.getPart();
case 2:
return placement.getSide();
case 3:
return new LengthCellValue(loc.getLengthX(), true);
case 4:
return new LengthCellValue(loc.getLengthY(), true);
case 5:
return String.format(configuration.getLengthDisplayFormat(), loc.getRotation());
case 6:
return placement.isPlace();
default:
return null;
}
}