Mercurial > projects > dwt-mac
comparison dwt/browser/CloseWindowListener.d @ 125:5583f8eeee6c
Synced mozilla with dwt-linux
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Fri, 16 Jan 2009 12:49:08 +0100 |
parents | d8635bb48c7c |
children |
comparison
equal
deleted
inserted
replaced
124:540fa4e9974a | 125:5583f8eeee6c |
---|---|
5 * which accompanies this distribution, and is available at | 5 * which accompanies this distribution, and is available at |
6 * http://www.eclipse.org/legal/epl-v10.html | 6 * http://www.eclipse.org/legal/epl-v10.html |
7 * | 7 * |
8 * Contributors: | 8 * Contributors: |
9 * IBM Corporation - initial API and implementation | 9 * IBM Corporation - initial API and implementation |
10 * | |
11 * Port to the D programming language: | 10 * Port to the D programming language: |
12 * Jacob Carlborg <doob@me.com> | 11 * John Reimer <terminal.node@gmail.com> |
13 *******************************************************************************/ | 12 *******************************************************************************/ |
14 module dwt.browser.CloseWindowListener; | 13 module dwt.browser.CloseWindowListener; |
15 | 14 |
15 import dwt.internal.DWTEventListener; | |
16 import dwt.browser.WindowEvent; | 16 import dwt.browser.WindowEvent; |
17 import dwt.dwthelper.utils; | |
18 import dwt.internal.DWTEventListener; | |
19 | 17 |
20 /** | 18 /** |
21 * This listener interface may be implemented in order to receive | 19 * This listener interface may be implemented in order to receive |
22 * a {@link WindowEvent} notification when a {@link Browser} is | 20 * a {@link WindowEvent} notification when a {@link Browser} is |
23 * about to be closed and when its host window should be closed | 21 * about to be closed and when its host window should be closed |
30 * | 28 * |
31 * @since 3.0 | 29 * @since 3.0 |
32 */ | 30 */ |
33 public interface CloseWindowListener : DWTEventListener { | 31 public interface CloseWindowListener : DWTEventListener { |
34 | 32 |
35 /** | 33 /** |
36 * This method is called when the window hosting a {@link Browser} should be closed. | 34 * This method is called when the window hosting a {@link Browser} should be closed. |
37 * Application would typically close the {@link dwt.widgets.Shell} that | 35 * Application would typically close the {@link dwt.widgets.Shell} that |
38 * hosts the <code>Browser</code>. The <code>Browser</code> is disposed after this | 36 * hosts the <code>Browser</code>. The <code>Browser</code> is disposed after this |
39 * notification. | 37 * notification. |
40 * | 38 * |
41 * <p>The following fields in the <code>WindowEvent</code> apply: | 39 * <p>The following fields in the <code>WindowEvent</code> apply: |
42 * <ul> | 40 * <ul> |
43 * <li>(in) widget the <code>Browser</code> that is going to be disposed | 41 * <li>(in) widget the <code>Browser</code> that is going to be disposed |
44 * </ul></p> | 42 * </ul></p> |
45 * | 43 * |
46 * @param event the <code>WindowEvent</code> that specifies the <code>Browser</code> | 44 * @param event the <code>WindowEvent</code> that specifies the <code>Browser</code> |
47 * that is going to be disposed | 45 * that is going to be disposed |
48 * | 46 * |
49 * @see dwt.widgets.Shell#close() | 47 * @see dwt.widgets.Shell#close() |
50 * | 48 * |
51 * @since 3.0 | 49 * @since 3.0 |
52 */ | 50 */ |
53 public void close (WindowEvent event); | 51 public void close(WindowEvent event); |
54 } | 52 } |