container.addHeadline(i18n.tr("Details"));
container.addLabelPair(i18n.tr("Verwendungszweck"), control.getZweck());
container.addLabelPair(i18n.tr("Betrag"), control.getBetrag());
ButtonArea buttonArea = new ButtonArea();
Button delete = new Button(i18n.tr("L�schen"), new DBObjectDelete(),control.getBuchung(),false,"user-trash-full.png");
delete.setEnabled(!l.ausgefuehrt());
buttonArea.addButton(delete);
Button store = new Button(i18n.tr("Speichern"), new Action() {
public void handleAction(Object context) throws ApplicationException {
control.handleStore();
}
},null,false,"document-save.png");
store.setEnabled(!l.ausgefuehrt());
buttonArea.addButton(store);
// BUGZILLA 116 http://www.willuhn.de/bugzilla/show_bug.cgi?id=116
Button store2 = new Button(i18n.tr("Speichern und n�chste Buchung"), new Action() {
public void handleAction(Object context) throws ApplicationException {
if (control.handleStore())
{
new de.willuhn.jameica.hbci.gui.action.SepaSammelUeberweisungBuchungNew().handleAction(l);
// Wir schicken das hier nochmal, weil beim Start einer neuen View die Statusbar geleert wird
Application.getMessagingFactory().sendMessage(new StatusBarMessage(i18n.tr("Buchung gespeichert"),StatusBarMessage.TYPE_SUCCESS));
}
}
},null,!l.ausgefuehrt(),"go-next.png");
store2.setEnabled(!l.ausgefuehrt());
buttonArea.addButton(store2);
buttonArea.paint(getParent());
}