com.smartgwt.client.widgets.events

## Interface HasCloseClickHandlers

- All Superinterfaces:
    com.google.gwt.event.shared.HasHandlers
  All Known Implementing Classes:
    AISortProgressDialog, AIWindow, BuildUIViaAIProgressDialog, BuildViaAIProgressDialog, ColorPicker, DateRangeDialog, Dialog, EditSearchWindow, FieldPickerWindow, FilterViaAIProgressDialog, HiliteViaAIProgressDialog, ListPropertiesDialog, MultiGroupDialog, MultiSortDialog, Portlet, PrintWindow, TourWindow, Window

      public interface HasCloseClickHandlers
      extends com.google.gwt.event.shared.HasHandlers

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `com.google.gwt.event.shared.HandlerRegistration` | `addCloseClickHandler(CloseClickHandler handler)` Handles a click on the close button of this window.

    - ### Methods inherited from interface com.google.gwt.event.shared.HasHandlers

      `fireEvent`

- - ### Method Detail

    - #### addCloseClickHandler

          com.google.gwt.event.shared.HandlerRegistration addCloseClickHandler(CloseClickHandler handler)

      Handles a click on the close button of this window. The default implementation calls `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.

      Parameters:
        `handler` - the closeClick handler
      Returns:
        `HandlerRegistration` used to remove this handler