public TablePart getConfigList() throws RemoteException
{
if (this.configList != null)
return this.configList;
this.configList = new TablePart(DDVConfigFactory.getConfigs(),new Action()
{
public void handleAction(Object context) throws ApplicationException
{
GUI.startView(Detail.class,context);
}
});
this.configList.addColumn(i18n.tr("Alias-Name"),"name");
this.configList.addColumn(i18n.tr("Kartenleser"),"readerPreset");
this.configList.addColumn(i18n.tr("Index des HBCI-Zugangs"),"entryIndex");
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("Neue Konfiguration..."),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((DDVConfig)context);}
},"user-trash-full.png"));
this.configList.setContextMenu(ctx);
this.configList.setMulti(false);