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 PIN/TAN-Konfiguration aus") : text,true);
final TablePart table = new TablePart(PinTanConfigFactory.getConfigs(), new Action() {
public void handleAction(Object context) throws ApplicationException
{
if (context == null || !(context instanceof PinTanConfig))
return;
selected = (PinTanConfig) context;
close();
}
});
table.addColumn(i18n.tr("Bank"),"bank");
table.addColumn(i18n.tr("Alias-Name"),"bezeichnung");
table.addColumn(i18n.tr("URL"),"url");
table.addColumn(i18n.tr("Kundenkennung"),"customerid");
table.setMulti(false);
table.setSummary(false);
table.paint(parent);
ButtonArea buttons = new ButtonArea(parent,2);
buttons.addButton(i18n.tr("�bernehmen"), new Action() {
public void handleAction(Object context) throws ApplicationException
{
selected = (PinTanConfig) table.getSelection();
if (selected == null)
return;
close();
}
},null,true);