KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 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 import org.eclipse.swt.internal.SWTEventListener;
15
16 /**
17  * Classes which implement this interface provide methods
18  * that deal with changes in state of <code>Shell</code>s.
19  * <p>
20  * After creating an instance of a class that implements
21  * this interface it can be added to a shell using the
22  * <code>addShellListener</code> method and removed using
23  * the <code>removeShellListener</code> method. When the
24  * state of the shell changes, the appropriate method will
25  * be invoked.
26  * </p>
27  *
28  * @see ShellAdapter
29  * @see ShellEvent
30  */

31 public interface ShellListener extends SWTEventListener {
32
33 /**
34  * Sent when a shell becomes the active window.
35  *
36  * @param e an event containing information about the activation
37  */

38 public void shellActivated(ShellEvent e);
39
40 /**
41  * Sent when a shell is closed.
42  *
43  * @param e an event containing information about the close
44  */

45 public void shellClosed(ShellEvent e);
46
47 /**
48  * Sent when a shell stops being the active window.
49  *
50  * @param e an event containing information about the deactivation
51  */

52 public void shellDeactivated(ShellEvent e);
53
54 /**
55  * Sent when a shell is un-minimized.
56  *
57  * @param e an event containing information about the un-minimization
58  */

59 public void shellDeiconified(ShellEvent e);
60
61 /**
62  * Sent when a shell is minimized.
63  *
64  * @param e an event containing information about the minimization
65  */

66 public void shellIconified(ShellEvent e);
67 }
68
Popular Tags