Skip to content

Instantly share code, notes, and snippets.

@niloc132
Created November 9, 2013 02:37
Show Gist options
  • Save niloc132/7380874 to your computer and use it in GitHub Desktop.
Save niloc132/7380874 to your computer and use it in GitHub Desktop.
Window.alert("about to add handlers");
Window.addCloseHandler(new CloseHandler<Window>() {
@Override
public void onClose(CloseEvent<Window> event) {
Window.alert("close");
}
}) ;
Window.addWindowClosingHandler(new ClosingHandler() {
@Override
public void onWindowClosing(ClosingEvent event) {
Window.alert("closing");
}
});
Window.alert("handlers added correctly");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment