public interface HasCloseClickHandlers extends HasHandlers
Modifier and Type | Method and Description |
---|---|
HandlerRegistration |
addCloseClickHandler(CloseClickHandler handler)
Handles a click on the close button of this window.
|
fireEvent
HandlerRegistration addCloseClickHandler(CloseClickHandler handler)
close()
and returns false to prevent bubbling of the click event.
Developers may use addCloseClickHandler()
to provide custom handling when the user clicks this button.
Custom implementations may call close()
to trigger the default behavior.
handler
- the closeClick handlerHandlerRegistration
used to remove this handler