GUI.getView().setTitle(i18n.tr("Konto-Details: {0} [Kto.-Nr.: {1}]",new String[]{s1,s2}));
}
else
GUI.getView().setTitle(i18n.tr("Konto-Details: Neues Konto"));
final KontoInput quickSelect = new KontoInput(k,KontoFilter.ALL);
quickSelect.setName(i18n.tr("Konto wechseln"));
quickSelect.addListener(new Listener() {
public void handleEvent(Event event)
{
try
{
Konto choice = (Konto) quickSelect.getValue();
if (choice == null)
return;
if (k.equals(choice))
return; // kein Wechsel stattgefunden
new de.willuhn.jameica.hbci.gui.action.KontoNew().handleAction(choice);
}
catch (OperationCanceledException oce)
{
// ignore
}
catch (ApplicationException ae)
{
Application.getMessagingFactory().sendMessage(new StatusBarMessage(ae.getMessage(),StatusBarMessage.TYPE_ERROR));
}
catch (RemoteException re)
{
Logger.error("unable to switch konto",re);
}
}
});
quickSelect.paint(this.getParent());
TabFolder lf = new TabFolder(this.getParent(), SWT.NONE);
lf.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
TabGroup props = new TabGroup(lf,i18n.tr("Eigenschaften"));