public static class Window.ClosingEvent extends GwtEvent<Window.ClosingHandler>
GwtEvent.Type<H>
Constructor and Description |
---|
ClosingEvent() |
Modifier and Type | Method and Description |
---|---|
protected void |
dispatch(Window.ClosingHandler handler)
Should only be called by
HandlerManager . |
GwtEvent.Type<Window.ClosingHandler> |
getAssociatedType()
Returns the
Event.Type used to register this event, allowing an
EventBus to find handlers of the appropriate class. |
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.
|
void |
setMessage(String message)
Set the message to a
non-null value to present a
confirmation dialog that asks the user whether or not she wishes to
navigate away from the page. |
assertLive, getSource, isLive, kill, revive
public final GwtEvent.Type<Window.ClosingHandler> getAssociatedType()
com.google.web.bindery.event.shared.Event
Event.Type
used to register this event, allowing an
EventBus
to find handlers of the appropriate class.getAssociatedType
in class GwtEvent<Window.ClosingHandler>
public String getMessage()
public void setMessage(String message)
non-null
value 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.message
- the message to display to the user, or nullprotected void dispatch(Window.ClosingHandler handler)
GwtEvent
HandlerManager
. In other words, do not use
or call.dispatch
in class GwtEvent<Window.ClosingHandler>
handler
- handlerEventBus.dispatchEvent(Event, Object)
Copyright © 2018. All rights reserved.