API Reference 0.3.24dart_web_toolkit_placeDefaultDelegate

DefaultDelegate class

Default implementation of {@link Delegate}, based on {@link Window}.

class DefaultDelegate implements Delegate {
 
 HandlerRegistration addWindowClosingHandler(ClosingHandler handler) {
   return new ClosingHandlerRegistration(handler);
 }

 bool confirm(String message) {
   return dart_html.window.confirm(message);
 }
}

Implements

Delegate

Methods

HandlerRegistration addWindowClosingHandler(ClosingHandler handler) #

Adds a {@link ClosingHandler} to the Delegate.

@param handler a {@link ClosingHandler} instance @return a {@link HandlerRegistration} instance

docs inherited from Delegate
HandlerRegistration addWindowClosingHandler(ClosingHandler handler) {
 return new ClosingHandlerRegistration(handler);
}

bool confirm(String message) #

Called to confirm a window closing event.

@param message a warning message @return true to allow the window closing

docs inherited from Delegate
bool confirm(String message) {
 return dart_html.window.confirm(message);
}