* @param rowIndex
* @param columnIndex
* @return verdi
*/
public Object getValueAt(int rowIndex, int columnIndex) {
Accident accident = (Accident) getRow(rowIndex);
switch (columnIndex) {
case 0:
return accident.getRegisteredBy();
case 1:
return Util.formatDate(accident.getRegistrationDate(),
Util.SHORT_DATE_FORMAT);
case 2:
return accident.getJobFunction();
case 3:
return accident.getPersonalInjuryBool();
case 4:
return accident.getAccidentDateAndTime();
case 5:
return accident.getReportedLeaderBool();
case 6:
return accident.getReportedPoliceBool();
case 7:
return accident.getReportedSocialSecurityBool();
default:
throw new IllegalStateException("Unknown column");
}
}