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 java.lang.Object implements PlaceController.Delegate
Default implementation ofPlaceController.Delegate
, based onWindow
.
-
-
Constructor Summary
Constructors Constructor Description DefaultDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HandlerRegistration
addWindowClosingHandler(Window.ClosingHandler handler)
Adds aWindow.ClosingHandler
to the Delegate.boolean
confirm(java.lang.String message)
Called to confirm a window closing event.
-
-
-
Method Detail
-
addWindowClosingHandler
public HandlerRegistration addWindowClosingHandler(Window.ClosingHandler handler)
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
public boolean confirm(java.lang.String message)
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
-
-