Container container = new SimpleContainer(getParent());
container.addHeadline(i18n.tr("Details"));
container.addLabelPair(i18n.tr("Verwendungszweck"), control.getZweck());
container.addLabelPair(i18n.tr("Betrag"), control.getBetrag());
ButtonArea buttonArea = new ButtonArea();
buttonArea.addButton(i18n.tr("L�schen"),new DBObjectDelete(),transfer,false,"user-trash-full.png");
buttonArea.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 execute = new Button(i18n.tr("Jetzt ausf�hren..."), new Action() {
public void handleAction(Object context) throws ApplicationException {
if (control.handleStore())
new AuslandsUeberweisungExecute().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());
buttonArea.addButton(execute);
buttonArea.addButton(store);
buttonArea.paint(getParent());
Application.getMessagingFactory().registerMessageConsumer(this.mc);
}