]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.eclipse.swt.win32.win32.x86_64/src/org/eclipse/swt/events/ShellAdapter.java
Remove invalid SHA-256-Digests
[simantics/platform.git] / bundles / org.eclipse.swt.win32.win32.x86_64 / src / org / eclipse / swt / events / ShellAdapter.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2017 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  * This adapter class provides default implementations for the
18  * methods described by the <code>ShellListener</code> interface.
19  * <p>
20  * Classes that wish to deal with <code>ShellEvent</code>s can
21  * extend this class and override only the methods which they are
22  * interested in.
23  * </p>
24  * <p>
25  * An alternative to this class are the static helper methods in
26  * {@link ShellListener},
27  * which accept a lambda expression or a method reference that implements the event consumer.
28  * </p>
29  *
30  * @see ShellListener
31  * @see ShellEvent
32  * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
33  */
34 public abstract class ShellAdapter implements ShellListener {
35
36 /**
37  * Sent when a shell becomes the active window.
38  * The default behavior is to do nothing.
39  *
40  * @param e an event containing information about the activation
41  */
42 @Override
43 public void shellActivated(ShellEvent e) {
44 }
45
46 /**
47  * Sent when a shell is closed.
48  * The default behavior is to do nothing.
49  *
50  * @param e an event containing information about the close
51  */
52 @Override
53 public void shellClosed(ShellEvent e) {
54 }
55
56 /**
57  * Sent when a shell stops being the active window.
58  * The default behavior is to do nothing.
59  *
60  * @param e an event containing information about the deactivation
61  */
62 @Override
63 public void shellDeactivated(ShellEvent e) {
64 }
65
66 /**
67  * Sent when a shell is un-minimized.
68  * The default behavior is to do nothing.
69  *
70  * @param e an event containing information about the un-minimization
71  */
72 @Override
73 public void shellDeiconified(ShellEvent e) {
74 }
75
76 /**
77  * Sent when a shell is minimized.
78  * The default behavior is to do nothing.
79  *
80  * @param e an event containing information about the minimization
81  */
82 @Override
83 public void shellIconified(ShellEvent e) {
84 }
85 }