public int getColumnCount() {
return 7;
}
public Object getValueAt(int column, int row) {
Invoice invoice = (Invoice) this.getJbsBaseObjects().get(row);
switch (column) {
case 0:
Boolean checked = new Boolean(this.isInvoiceSelected(invoice));
return checked;
case 1:
String userNo = invoice.getUserNumber();
if (userNo == null) {
userNo = "";
}
return userNo;
case 2:
String name1 = invoice.getName1();
if (name1 == null) {
name1 = "";
}
return name1;
case 3:
String sDate = "";
if (invoice.getTransactionDate()!=null)
sDate = ClientGlobals.getDateFormat().format(invoice.getTransactionDate().getTime());
return sDate;
case 4:
return ClientGlobals.getPriceFormat().format(invoice.getSalesPriceSumGross());
case 5:
return ClientGlobals.getPriceFormat().format(invoice.getSumPayed());
case 6:
return "";
default:
return "";
}