forked from eclipse/nebula
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CloseListener.java
39 lines (37 loc) · 1.37 KB
/
CloseListener.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*******************************************************************************
* Copyright (c) 2020 Laurent CARON.
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors: Laurent CARON (laurent.caron at gmail dot com) - initial API and
* implementation
*******************************************************************************/
package org.eclipse.nebula.widgets.chips;
import java.util.EventListener;
/**
* Classes which implement this interface provide methods
* that deal with the events that are generated when a Chips widget is closed.
* <p>
* After creating an instance of a class that implements
* this interface it can be added to a control using the
* <code>addCloseListener</code> method and removed using
* the <code>removeCloseListener</code> method. When
* selection occurs in a control the appropriate method
* will be invoked.
* </p>
*
* @see CloseEvent
*/
@FunctionalInterface
public interface CloseListener extends EventListener {
/**
* Sent when a Chips widget is closed.
*
* @param e an event containing information about the chips that is closed
*/
void onClose(CloseEvent event);
}