01: /*******************************************************************************
02: * Copyright (c) 2000, 2003 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.swt.events;
11:
12: /**
13: * This adapter class provides default implementations for the
14: * methods described by the <code>ShellListener</code> interface.
15: * <p>
16: * Classes that wish to deal with <code>ShellEvent</code>s can
17: * extend this class and override only the methods which they are
18: * interested in.
19: * </p>
20: *
21: * @see ShellListener
22: * @see ShellEvent
23: */
24: public abstract class ShellAdapter implements ShellListener {
25:
26: /**
27: * Sent when a shell becomes the active window.
28: * The default behavior is to do nothing.
29: *
30: * @param e an event containing information about the activation
31: */
32: public void shellActivated(ShellEvent e) {
33: }
34:
35: /**
36: * Sent when a shell is closed.
37: * The default behavior is to do nothing.
38: *
39: * @param e an event containing information about the close
40: */
41: public void shellClosed(ShellEvent e) {
42: }
43:
44: /**
45: * Sent when a shell stops being the active window.
46: * The default behavior is to do nothing.
47: *
48: * @param e an event containing information about the deactivation
49: */
50: public void shellDeactivated(ShellEvent e) {
51: }
52:
53: /**
54: * Sent when a shell is un-minimized.
55: * The default behavior is to do nothing.
56: *
57: * @param e an event containing information about the un-minimization
58: */
59: public void shellDeiconified(ShellEvent e) {
60: }
61:
62: /**
63: * Sent when a shell is minimized.
64: * The default behavior is to do nothing.
65: *
66: * @param e an event containing information about the minimization
67: */
68: public void shellIconified(ShellEvent e) {
69: }
70: }
|