Hello folks,
How do i cancel the close event of a window ? Doing something like this:
Thanks by the attention!
How do i cancel the close event of a window ? Doing something like this:
Code:
... myWindow.addCloseClickHandler(new CloseClickHandler() { @Override public void onCloseClick(CloseClickEvent event) { SC.confirm("Confirm close?", new BooleanCallback() { @Override public void execute(Boolean value) { if(value){ //close window }else{ //do not close } } }); } }); ...
Comment