public void bind() throws Exception
{
SepaLastschriftControl control = new SepaLastschriftControl(this);
final de.willuhn.jameica.hbci.gui.parts.SepaLastschriftList table = control.getSepaLastschriftListe();
final PanelButtonPrint print = new PanelButtonPrint(new PrintSupportSepaLastschriftList(table));
table.addSelectionListener(new Listener() {
public void handleEvent(Event event)
{
print.setEnabled(table.getSelection() != null);
}
});
GUI.getView().setTitle(i18n.tr("Vorhandene SEPA-Lastschriften"));
GUI.getView().addPanelButton(print);
ButtonArea buttons = table.getButtons();
buttons.addButton(i18n.tr("Importieren..."),new SepaLastschriftImport(),null,false,"document-open.png");
buttons.addButton(i18n.tr("Neue SEPA-Lastschrift"), new de.willuhn.jameica.hbci.gui.action.SepaLastschriftNew(),null,false,"text-x-generic.png");
table.paint(getParent());
print.setEnabled(table.getSelection() != null); // einmal initial ausloesen
}