com.google.gwt.user.client.WindowCloseListener |
This interface is deprecated.
use Window.ClosingHandler
and
CloseHandler
instead
Implement this interface to receive closing events from the browser window.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Fired after the browser window closes or navigates to a different site.
| |||||||||||
Fired just before the browser window closes or navigates to a different
site.
|
Fired after the browser window closes or navigates to a different site. This event cannot be canceled, and is used mainly to clean up application state and/or save state to the server.
Fired just before the browser window closes or navigates to a different site. No user-interface may be displayed during shutdown.
null
to present a confirmation dialog that asks
the user whether or not she wishes to navigate away from the page.
The string returned will be displayed in the close confirmation
dialog box. If multiple listeners return messages, the first will
be displayed; all others will be ignored.