public Widget asWidget() {
VerticalPanel layout = new VerticalPanel();
layout.addStyleName("window-content");
final BroadcastGroupForm form = new BroadcastGroupForm(new FormToolStrip.FormCallback<BroadcastGroup>() {
@Override
public void onSave(Map<String, Object> changeset) {
}
@Override
public void onDelete(BroadcastGroup entity) {
}
}, false);
form.setIsCreate(true);
form.setSocketBindings(names);
layout.add(form.asWidget());
DialogueOptions options = new DialogueOptions(
new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
Form<BroadcastGroup> actualForm = form.getForm();
FormValidation validation = actualForm .validate();
if(!validation.hasErrors()) {
BroadcastGroup entity = actualForm.getUpdatedEntity();
presenter.onCreateBroadcastGroup(entity);
}