Created
November 9, 2013 02:37
-
-
Save niloc132/7380874 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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