com.google.gwt.user.client.Window.ClosingEvent Java Examples

The following examples show how to use com.google.gwt.user.client.Window.ClosingEvent. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: EventListenerInitializer.java    From geowe-core with GNU General Public License v3.0 6 votes vote down vote up
public void initialize() {

		addChangelayerListener();

		addRemoveLayerListener();

		addAddLayerListener();
		
		addChangeSelectedWMSLayerListener();

		Window.addWindowClosingHandler(new Window.ClosingHandler() {
			@Override
			public void onWindowClosing(final ClosingEvent event) {
				event.setMessage(UIMessages.INSTANCE.leaveWebText());
			}
		});
	}