Package com.google.gwt.place.shared
Interface PlaceController.Delegate
-
- All Known Implementing Classes:
PlaceController.DefaultDelegate
- Enclosing class:
- PlaceController
public static interface PlaceController.DelegateOptional delegate in charge of Window-related events. Provides nice isolation for unit testing, and allows customization of confirmation handling.
-
-
Method Summary
All Methods Instance Methods Abstract 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
HandlerRegistration addWindowClosingHandler(Window.ClosingHandler handler)
Adds aWindow.ClosingHandlerto the Delegate.- Parameters:
handler- aWindow.ClosingHandlerinstance- Returns:
- a
HandlerRegistrationinstance
-
confirm
boolean confirm(java.lang.String message)
Called to confirm a window closing event.- Parameters:
message- a warning message- Returns:
- true to allow the window closing
-
-