001/* 002 * Copyright 2013 GWT-Bootstrap 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package com.github.gwtbootstrap.client.ui.event; 017 018import com.google.gwt.event.shared.HandlerRegistration; 019 020/** 021 * Interface for widgets that handle {@link com.google.gwt.event.logical.shared.CloseEvent}s and {@link ClosedEvent}s. 022 * 023 * @author Dominik Mayer 024 * @author Danilo Reinert 025 * 026 * @since 2.0.4.0 027 */ 028public interface HasCloseHandlers<T> extends com.google.gwt.event.logical.shared.HasCloseHandlers<T> { 029 030 /** 031 * Adds a {@link ClosedHandler} to the widget. 032 * 033 * @param handler the handler 034 * @return {@link HandlerRegistration} used to remove this handler 035 */ 036 HandlerRegistration addClosedHandler(ClosedHandler<T> handler); 037 038}