return (int)this.getJbsObjects().size();
}
*/
public Object getValueAt(int column, int row) {
if (row < getJbsObjects().size()) {
AccountEntry accountEntry = (AccountEntry) getJbsObjects().get(row);
switch (column) {
case 0:
String receiptNumber = accountEntry.getReceiptNumber();
if (receiptNumber == null) {
receiptNumber = "";
}
return receiptNumber;
case 1:
String entryDate = "";
if (accountEntry.getEntryDate() != null) {
entryDate = accountEntry.getEntryDate().getTime().toString();
}
return entryDate;
case 2:
String shortText = accountEntry.getShortText(ClientGlobals.getMainDbLanguage());
if (shortText != null) {
return shortText;
} else {
return "";
}
case 3:
String sIncoming = "";
if (accountEntry.isIncoming()) {
sIncoming = ClientGlobals.getPriceFormat().format(accountEntry.getAmount());
}
return sIncoming;
case 4:
String sOutgoing = "";
if (!accountEntry.isIncoming()) {
sOutgoing = ClientGlobals.getPriceFormat().format(accountEntry.getAmount());
}
return sOutgoing;
default:
return "";
}