KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > swt > events > ShellAdapter


1 /*******************************************************************************
2  * Copyright (c) 2000, 2003 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.swt.events;
12
13
14 /**
15  * This adapter class provides default implementations for the
16  * methods described by the <code>ShellListener</code> interface.
17  * <p>
18  * Classes that wish to deal with <code>ShellEvent</code>s can
19  * extend this class and override only the methods which they are
20  * interested in.
21  * </p>
22  *
23  * @see ShellListener
24  * @see ShellEvent
25  */

26 public abstract class ShellAdapter implements ShellListener {
27
28 /**
29  * Sent when a shell becomes the active window.
30  * The default behavior is to do nothing.
31  *
32  * @param e an event containing information about the activation
33  */

34 public void shellActivated(ShellEvent e) {
35 }
36
37 /**
38  * Sent when a shell is closed.
39  * The default behavior is to do nothing.
40  *
41  * @param e an event containing information about the close
42  */

43 public void shellClosed(ShellEvent e) {
44 }
45
46 /**
47  * Sent when a shell stops being the active window.
48  * The default behavior is to do nothing.
49  *
50  * @param e an event containing information about the deactivation
51  */

52 public void shellDeactivated(ShellEvent e) {
53 }
54
55 /**
56  * Sent when a shell is un-minimized.
57  * The default behavior is to do nothing.
58  *
59  * @param e an event containing information about the un-minimization
60  */

61 public void shellDeiconified(ShellEvent e) {
62 }
63
64 /**
65  * Sent when a shell is minimized.
66  * The default behavior is to do nothing.
67  *
68  * @param e an event containing information about the minimization
69  */

70 public void shellIconified(ShellEvent e) {
71 }
72 }
73
Popular Tags