}
};
Container c1 = new SimpleContainer(parent,true,1);
final EmpfaengerList empf = new EmpfaengerList(a,this.filter);
empf.setContextMenu(null);
empf.setMulti(false);
empf.setSummary(false);
final Button apply = new Button(i18n.tr("�bernehmen"), new Action()
{
public void handleAction(Object context) throws ApplicationException
{
Object o = empf.getSelection();
if (o == null || !(o instanceof Address))
return;
choosen = (Address) o;
close();
}
},null,true,"ok.png");
apply.setEnabled(false);
empf.addSelectionListener(new Listener() {
public void handleEvent(Event event)
{
apply.setEnabled(empf.getSelection() != null);
}
});
empf.paint(c1.getComposite());
ButtonArea b = new ButtonArea();
b.addButton(apply);
b.addButton(i18n.tr("Abbrechen"), new Action()
{