/**
* @see javax.swing.table.TableModel#getValueAt(int, int)
*/
public Object getValueAt(int rowIndex, int columnIndex) {
FaktureringV faktureringV = (FaktureringV) getRow(rowIndex);
switch (columnIndex) {
case 0:
return faktureringV;
case 1:
if (faktureringV.getSent() != null) {
return Util.SHORT_DATE_FORMAT
.format(faktureringV.getSent());
}
return null;
case 2:
return faktureringV.getCustomerCost();
case 3:
if (faktureringV.getInvoiceDate() != null) {
return Util.SHORT_DATE_FORMAT.format(faktureringV
.getInvoiceDate());
}
return "---";
case 4:
if (faktureringV.getAssembliedDate() != null) {
return Util.SHORT_DATE_FORMAT.format(faktureringV
.getAssembliedDate());
}
return null;
case 5:
if (faktureringV.getProductAreaGroupName() != null) {
return faktureringV.getProductAreaGroupName();
}
return "";
default:
throw new IllegalStateException("Unknown column");