public SelectionDialog(com.gwtext.client.widgets.Window parent, Selectable selectable) {
super();
this.parent = parent;
this.selectable = selectable;
Button selectButton = new Button("Select", new ButtonListenerAdapter() {
@Override
public void onClick(Button button, EventObject e) {
Collection<EntityData> selection = SelectionDialog.this.selectable.getSelection();
if (selection != null && selection.size() > 0) {
EntityData singleSelection = selection.iterator().next();