container.addText(i18n.tr("Diese Daten werden nicht an die Bank �bertragen."),true);
container.addInput(control.getTermin());
container.addInput(control.getReminderInterval());
}
ButtonArea buttons = new ButtonArea();
buttons.addButton(i18n.tr("Sammelauftrag l�schen"),new Action() {
public void handleAction(Object context) throws ApplicationException
{
new DBObjectDelete().handleAction(context);
try
{
// Buchungen aus der Liste entfernen, wenn der Auftrag geloescht wurde
if (transfer.getID() == null)
control.getBuchungen().removeAll();
}
catch (RemoteException re)
{
Logger.error("unable to remove bookings",re);
}
}
},transfer,false,"user-trash-full.png");
buttons.addButton(i18n.tr("Duplizieren..."), new Action() {
public void handleAction(Object context) throws ApplicationException
{
if (control.handleStore()) // BUGZILLA 1181
new Duplicate().handleAction(transfer);
}
},null,false,"edit-copy.png");
Button add = new Button(i18n.tr("Neue Buchungen hinzuf�gen"), new Action() {
public void handleAction(Object context) throws ApplicationException {
if (control.handleStore())
new de.willuhn.jameica.hbci.gui.action.SepaSammelLastBuchungNew().handleAction(transfer);
}
},null,false,"text-x-generic.png");
add.setEnabled(!transfer.ausgefuehrt());
Button execute = new Button(i18n.tr("Jetzt ausf�hren..."), new Action() {
public void handleAction(Object context) throws ApplicationException {
if (control.handleStore())
new SepaSammelLastschriftExecute().handleAction(transfer);
}
},null,false,"emblem-important.png");
execute.setEnabled(!transfer.ausgefuehrt());
Button store = new Button(i18n.tr("Speichern"),new Action() {
public void handleAction(Object context) throws ApplicationException {
control.handleStore();
}
},null,!transfer.ausgefuehrt(),"document-save.png");
store.setEnabled(!transfer.ausgefuehrt());
buttons.addButton(add);
buttons.addButton(execute);
buttons.addButton(store);
buttons.paint(getParent());
new Headline(getParent(),i18n.tr("Enthaltene Buchungen"));
control.getBuchungen().paint(getParent());
Application.getMessagingFactory().registerMessageConsumer(this.mc);