Package com.google.gwt.user.client
Class Window.ClosingEvent
- java.lang.Object
- 
- com.google.web.bindery.event.shared.Event<H>
- 
- com.google.gwt.event.shared.GwtEvent<Window.ClosingHandler>
- 
- com.google.gwt.user.client.Window.ClosingEvent
 
 
 
- 
- Enclosing class:
- Window
 
 public static class Window.ClosingEvent extends GwtEvent<Window.ClosingHandler> Fired just before the browser window closes or navigates to a different site.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEventGwtEvent.Type<H>
 
- 
 - 
Constructor SummaryConstructors Constructor Description ClosingEvent()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddispatch(Window.ClosingHandler handler)Should only be called byHandlerManager.GwtEvent.Type<Window.ClosingHandler>getAssociatedType()Returns theEvent.Typeused to register this event, allowing anEventBusto find handlers of the appropriate class.java.lang.StringgetMessage()Get the message that will be presented to the user in a confirmation dialog that asks the user whether or not she wishes to navigate away from the page.(package private) static GwtEvent.Type<Window.ClosingHandler>getType()voidsetMessage(java.lang.String message)Set the message to anon-nullvalue to present a confirmation dialog that asks the user whether or not she wishes to navigate away from the page.- 
Methods inherited from class com.google.gwt.event.shared.GwtEventassertLive, getSource, isLive, kill, revive
 - 
Methods inherited from class com.google.web.bindery.event.shared.EventsetSource, toDebugString, toString
 
- 
 
- 
- 
- 
Method Detail- 
getTypestatic GwtEvent.Type<Window.ClosingHandler> getType() 
 - 
getAssociatedTypepublic final GwtEvent.Type<Window.ClosingHandler> getAssociatedType() Description copied from class:EventReturns theEvent.Typeused to register this event, allowing anEventBusto find handlers of the appropriate class.- Specified by:
- getAssociatedTypein class- GwtEvent<Window.ClosingHandler>
- Returns:
- the type
 
 - 
getMessagepublic java.lang.String getMessage() Get the message that will be presented to the user in a confirmation dialog that asks the user whether or not she wishes to navigate away from the page.- Returns:
- the message to display to the user, or null
 
 - 
setMessagepublic void setMessage(java.lang.String message) Set the message to anon-nullvalue to present a confirmation dialog that asks the user whether or not she wishes to navigate away from the page. If multiple handlers set the message, the last message will be displayed; all others will be ignored.- Parameters:
- message- the message to display to the user, or null
 
 - 
dispatchprotected void dispatch(Window.ClosingHandler handler) Description copied from class:GwtEventShould only be called byHandlerManager. In other words, do not use or call.- Specified by:
- dispatchin class- GwtEvent<Window.ClosingHandler>
- Parameters:
- handler- handler
- See Also:
- EventBus.dispatchEvent(Event, Object)
 
 
- 
 
-