Example usage for com.google.gwt.place.shared PlaceChangeRequestEvent setWarning

List of usage examples for com.google.gwt.place.shared PlaceChangeRequestEvent setWarning

Introduction

In this page you can find the example usage for com.google.gwt.place.shared PlaceChangeRequestEvent setWarning.

Prototype

public void setWarning(String warning) 

Source Link

Document

Set a message to warn the user that it might be unwise to navigate away from the current place, e.g.

Usage

From source file:com.googlecode.mgwt.mvp.client.AnimatingActivityManager.java

License:Apache License

public void onPlaceChangeRequest(PlaceChangeRequestEvent event) {
    if (!currentActivity.equals(NULL_ACTIVITY)) {
        event.setWarning(currentActivity.mayStop());
    }// ww  w .jav  a  2s .c  o  m
}