Package com.google.gwt.place.shared
Class PlaceController.DefaultDelegate
java.lang.Object
com.google.gwt.place.shared.PlaceController.DefaultDelegate
- All Implemented Interfaces:
PlaceController.Delegate
- Enclosing class:
PlaceController
public static class PlaceController.DefaultDelegate
extends Object
implements PlaceController.Delegate
Default implementation of
PlaceController.Delegate, based on Window.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds aWindow.ClosingHandlerto the Delegate.booleanCalled to confirm a window closing event.
-
Constructor Details
-
DefaultDelegate
public DefaultDelegate()
-
-
Method Details
-
addWindowClosingHandler
Description copied from interface:PlaceController.DelegateAdds aWindow.ClosingHandlerto the Delegate.- Specified by:
addWindowClosingHandlerin interfacePlaceController.Delegate- Parameters:
handler- aWindow.ClosingHandlerinstance- Returns:
- a
HandlerRegistrationinstance
-
confirm
Description copied from interface:PlaceController.DelegateCalled to confirm a window closing event.- Specified by:
confirmin interfacePlaceController.Delegate- Parameters:
message- a warning message- Returns:
- true to allow the window closing
-