01: /*******************************************************************************
02: * Copyright (c) 2000, 2005 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: import org.eclipse.swt.internal.SWTEventListener;
13:
14: /**
15: * Classes which implement this interface provide methods
16: * that deal with changes in state of <code>Shell</code>s.
17: * <p>
18: * After creating an instance of a class that implements
19: * this interface it can be added to a shell using the
20: * <code>addShellListener</code> method and removed using
21: * the <code>removeShellListener</code> method. When the
22: * state of the shell changes, the appropriate method will
23: * be invoked.
24: * </p>
25: *
26: * @see ShellAdapter
27: * @see ShellEvent
28: */
29: public interface ShellListener extends SWTEventListener {
30:
31: /**
32: * Sent when a shell becomes the active window.
33: *
34: * @param e an event containing information about the activation
35: */
36: public void shellActivated(ShellEvent e);
37:
38: /**
39: * Sent when a shell is closed.
40: *
41: * @param e an event containing information about the close
42: */
43: public void shellClosed(ShellEvent e);
44:
45: /**
46: * Sent when a shell stops being the active window.
47: *
48: * @param e an event containing information about the deactivation
49: */
50: public void shellDeactivated(ShellEvent e);
51:
52: /**
53: * Sent when a shell is un-minimized.
54: *
55: * @param e an event containing information about the un-minimization
56: */
57: public void shellDeiconified(ShellEvent e);
58:
59: /**
60: * Sent when a shell is minimized.
61: *
62: * @param e an event containing information about the minimization
63: */
64: public void shellIconified(ShellEvent e);
65: }
|