Package com.google.gwt.place.shared
Interface PlaceController.Delegate
- All Known Implementing Classes:
PlaceController.DefaultDelegate
- Enclosing class:
- PlaceController
public static interface PlaceController.Delegate
Optional delegate in charge of Window-related events. Provides nice
isolation for unit testing, and allows customization of confirmation
handling.
-
Method Summary
Modifier and TypeMethodDescriptionAdds aWindow.ClosingHandlerto the Delegate.booleanCalled to confirm a window closing event.
-
Method Details
-
addWindowClosingHandler
Adds aWindow.ClosingHandlerto the Delegate.- Parameters:
handler- aWindow.ClosingHandlerinstance- Returns:
- a
HandlerRegistrationinstance
-
confirm
Called to confirm a window closing event.- Parameters:
message- a warning message- Returns:
- true to allow the window closing
-