* @param rowIndex
* @param columnIndex
* @return verdi
*/
public Object getValueAt(int rowIndex, int columnIndex) {
Employee employee = (Employee) getRow(rowIndex);
switch (columnIndex) {
case 0:
return employee.getFirstName();
case 1:
return employee.getLastName();
case 2:
return employee.getPhone();
case 3:
return employee.getEmployeeType();
case 4:
return employee.getInactive()==null||employee.getInactive()==0?Boolean.FALSE:Boolean.TRUE;
case 5:
return employee.getInactive()==null||employee.getInactive()==0?"Ja":"Nei";
default:
throw new IllegalStateException("Unknown column");
}
}