I'd like to do something like this:
Window.addWindowClosingHandler(new Window.ClosingHandler() {
@Override
public void onWindowClosing(ClosingEvent event) {
event.setMessage("Really?");
IF user clicks ok in the dialog, execute code below. Else skip the code and return to window.
CODE that does stuff goes here.
}
});
How do I capture the input from the dialog?