protected void paint(Composite parent) throws Exception
{
LabelGroup group = new LabelGroup(parent,i18n.tr("Konfiguration"));
group.addText(text == null ? i18n.tr("Bitte w�hlen Sie die zu verwendende Kartenleser-Konfiguration aus") : text,true);
final TablePart table = new TablePart(DDVConfigFactory.getConfigs(), new Action() {
public void handleAction(Object context) throws ApplicationException
{
if (context == null || !(context instanceof DDVConfig))
return;
selected = (DDVConfig) context;
close();
}
});
table.addColumn(i18n.tr("Alias-Name"),"name");
table.addColumn(i18n.tr("Kartenleser"),"readerPreset");
table.addColumn(i18n.tr("Index des HBCI-Zugangs"),"entryIndex");
table.setMulti(false);
table.setSummary(false);
table.paint(parent);
ButtonArea buttons = new ButtonArea();
buttons.addButton(i18n.tr("�bernehmen"), new Action() {
public void handleAction(Object context) throws ApplicationException
{
selected = (DDVConfig) table.getSelection();
if (selected == null)
return;
close();
}
},null,true);