1 /*******************************************************************************
2 * Copyright (c) 2000, 2017 IBM Corporation and others.
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/
9 * SPDX-License-Identifier: EPL-2.0
12 * IBM Corporation - initial API and implementation
13 *******************************************************************************/
14 package org.eclipse.swt.events;
17 * This adapter class provides default implementations for the
18 * methods described by the <code>ShellListener</code> interface.
20 * Classes that wish to deal with <code>ShellEvent</code>s can
21 * extend this class and override only the methods which they are
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.
32 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
34 public abstract class ShellAdapter implements ShellListener {
37 * Sent when a shell becomes the active window.
38 * The default behavior is to do nothing.
40 * @param e an event containing information about the activation
43 public void shellActivated(ShellEvent e) {
47 * Sent when a shell is closed.
48 * The default behavior is to do nothing.
50 * @param e an event containing information about the close
53 public void shellClosed(ShellEvent e) {
57 * Sent when a shell stops being the active window.
58 * The default behavior is to do nothing.
60 * @param e an event containing information about the deactivation
63 public void shellDeactivated(ShellEvent e) {
67 * Sent when a shell is un-minimized.
68 * The default behavior is to do nothing.
70 * @param e an event containing information about the un-minimization
73 public void shellDeiconified(ShellEvent e) {
77 * Sent when a shell is minimized.
78 * The default behavior is to do nothing.
80 * @param e an event containing information about the minimization
83 public void shellIconified(ShellEvent e) {