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. |
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.
|
(package private) static GwtEvent.Type<Window.ClosingHandler> |
getType() |
void |
setMessage(java.lang.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
setSource, toDebugString, toString
static GwtEvent.Type<Window.ClosingHandler> getType()
public final GwtEvent.Type<Window.ClosingHandler> getAssociatedType()
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 java.lang.String getMessage()
public void setMessage(java.lang.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)