switch (column) {
case 0:
if (selectable) {
final CheckBox checkBox = new CheckBox("");
checkBox.setSelected((Boolean) value);
checkBox.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
if (checkBox.isSelected())
tableModel.selectInvoice(invoice);
else
tableModel.deSelectInvoice(invoice);
}
});
component = checkBox;
} else {
component = new JbsLabel();
}
break;
case 4 :
component = super.getTableCellRendererComponent(table, value, column, row);
TableLayoutData rightLayout = new TableLayoutData();
rightLayout.setAlignment(Alignment.ALIGN_RIGHT);
component.setLayoutData(rightLayout);
break;
case 5 :
component = super.getTableCellRendererComponent(table, value, column, row);
TableLayoutData sumPayedLayout = new TableLayoutData();
sumPayedLayout.setAlignment(Alignment.ALIGN_RIGHT);
component.setLayoutData(sumPayedLayout);
break;
case 6:
final JbsButton btnShowInvoice = new JbsButton("Ansehen");
btnShowInvoice.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
FmInvoiceEdit fmInvoiceEdit = new FmInvoiceEdit();
fmInvoiceEdit.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
//tblInvoices.mustReload();
}
});
fmInvoiceEdit.showForm(DlgState.dsEdit, invoice);