DOM.setElementPropertyBoolean((Element) dialogOptions.getCancel(), "disabled", !cancelButton.enabled);
} else {
UIObject.setVisible(dialogOptions.getCancel(), false);
}
Widget windowContent = new WindowContentBuilder(layout, dialogOptions).build();
windowContent.getElement().setId(asId(PREFIX, getClass()));
return windowContent;
}