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 HandlerRegistrationaddWindowClosingHandler(Window.ClosingHandler handler)Adds aWindow.ClosingHandlerto the Delegate.booleanconfirm(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.DelegateAdds aWindow.ClosingHandlerto the Delegate.- Specified by:
addWindowClosingHandlerin interfacePlaceController.Delegate- Parameters:
handler- aWindow.ClosingHandlerinstance- Returns:
- a
HandlerRegistrationinstance
-
confirm
public boolean confirm(java.lang.String message)
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
-
-