configList.addColumn(i18n.tr("Name der Bank"),"bank");
configList.addColumn(i18n.tr("Alias-Name"),"bezeichnung");
configList.addColumn(i18n.tr("Bankleitzahl"),"blz");
configList.addColumn(i18n.tr("URL"),"url");
ContextMenu ctx = new ContextMenu();
ctx.addItem(new CheckedContextMenuItem(i18n.tr("�ffnen"),new Action() {
public void handleAction(Object context) throws ApplicationException {
if (context == null)
return;
try
{
GUI.startView(Detail.class,context);
}
catch (Exception e) {
Logger.error("error while loading config",e);
GUI.getStatusBar().setErrorText(i18n.tr("Fehler beim Anlegen der Konfiguration"));
}
}
},"document-open.png"));
ctx.addItem(new ContextMenuItem(i18n.tr("PIN/TAN-Zugang anlegen"),new Action() {
public void handleAction(Object context) throws ApplicationException {handleCreate();}
},"document-new.png"));
ctx.addItem(ContextMenuItem.SEPARATOR);
ctx.addItem(new CheckedContextMenuItem(i18n.tr("L�schen..."),new Action() {
public void handleAction(Object context) throws ApplicationException {handleDelete((PinTanConfig)context);}
},"user-trash-full.png"));
configList.setContextMenu(ctx);
configList.setMulti(false);