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