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
-
Method Summary
Modifier and TypeMethodDescriptionAdds aWindow.ClosingHandler
to the Delegate.boolean
Called to confirm a window closing event.
-
Constructor Details
-
DefaultDelegate
public DefaultDelegate()
-
-
Method Details
-
addWindowClosingHandler
Description copied from interface:PlaceController.Delegate
Adds aWindow.ClosingHandler
to the Delegate.- Specified by:
addWindowClosingHandler
in interfacePlaceController.Delegate
- Parameters:
handler
- aWindow.ClosingHandler
instance- Returns:
- a
HandlerRegistration
instance
-
confirm
Description copied from interface:PlaceController.Delegate
Called to confirm a window closing event.- Specified by:
confirm
in interfacePlaceController.Delegate
- Parameters:
message
- a warning message- Returns:
- true to allow the window closing
-