]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.eclipse.swt.win32.win32.x86_64/src/org/eclipse/swt/events/FocusAdapter.java
d6d9e0a73906084d153c0a506e7fbf7f393a76a3
[simantics/platform.git] / bundles / org.eclipse.swt.win32.win32.x86_64 / src / org / eclipse / swt / events / FocusAdapter.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2016 IBM Corporation and others.
3  *
4  * This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License 2.0
6  * which accompanies this distribution, and is available at
7  * https://www.eclipse.org/legal/epl-2.0/
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  *     IBM Corporation - initial API and implementation
13  *******************************************************************************/
14 package org.eclipse.swt.events;
15
16
17 /**
18  * This adapter class provides default implementations for the
19  * methods described by the <code>FocusListener</code> interface.
20  * <p>
21  * Classes that wish to deal with <code>FocusEvent</code>s can
22  * extend this class and override only the methods which they are
23  * interested in.
24  * </p>
25  *
26  * @see FocusListener
27  * @see FocusEvent
28  * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
29  */
30 public abstract class FocusAdapter implements FocusListener {
31
32 /**
33  * Sent when a control gets focus.
34  * The default behavior is to do nothing.
35  *
36  * @param e an event containing information about the focus change
37  */
38 @Override
39 public void focusGained(FocusEvent e) {
40 }
41
42 /**
43  * Sent when a control loses focus.
44  * The default behavior is to do nothing.
45  *
46  * @param e an event containing information about the focus change
47  */
48 @Override
49 public void focusLost(FocusEvent e) {
50 }
51 }