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.ClosingHandler
to the Delegate.boolean
Called to confirm a window closing event.
-
Method Details
-
addWindowClosingHandler
Adds aWindow.ClosingHandler
to the Delegate.- Parameters:
handler
- aWindow.ClosingHandler
instance- Returns:
- a
HandlerRegistration
instance
-
confirm
Called to confirm a window closing event.- Parameters:
message
- a warning message- Returns:
- true to allow the window closing
-