Class 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.
    • Constructor Detail

      • ClosingEvent

        public ClosingEvent()
    • Method Detail

      • getMessage

        public 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
      • setMessage

        public 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. 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