final HTML widget = new HTML(html.toSafeHtml());
widget.getElement().setAttribute("style", "margin:5px");
DialogueOptions options = new DialogueOptions(
"OK",
new ClickHandler() {
@Override
public void onClick(ClickEvent clickEvent) {
window.hide();
}
},
Console.CONSTANTS.common_label_cancel(),
new ClickHandler() {
@Override
public void onClick(ClickEvent clickEvent) {
window.hide();
}
}
);
options.getSubmit().setAttribute("aria-describedby", "consise-message detail-message");
Widget windowContent = new WindowContentBuilder(widget, options).build();
TrappedFocusPanel trap = new TrappedFocusPanel(windowContent)
{