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