Mercurial > projects > dwt-linux
comparison dwt/browser/CloseWindowListener.d @ 278:93409d9838c5
Commit more browser/xpcom updates, including still uncoverted source.
author | John Reimer<terminal.node@gmail.com> |
---|---|
date | Thu, 31 Jul 2008 19:17:51 -0700 |
parents | |
children | 44258e0b6687 |
comparison
equal
deleted
inserted
replaced
277:687f261028b8 | 278:93409d9838c5 |
---|---|
1 /******************************************************************************* | |
2 * Copyright (c) 2003, 2004 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 module dwt.browser.CloseWindowListener; | |
12 | |
13 import dwt.dwthelper.utils; | |
14 | |
15 import dwt.internal.DWTEventListener; | |
16 | |
17 /** | |
18 * This listener interface may be implemented in order to receive | |
19 * a {@link WindowEvent} notification when a {@link Browser} is | |
20 * about to be closed and when its host window should be closed | |
21 * by the application. | |
22 * | |
23 * @see Browser#addCloseWindowListener(CloseWindowListener) | |
24 * @see Browser#removeCloseWindowListener(CloseWindowListener) | |
25 * @see OpenWindowListener | |
26 * @see VisibilityWindowListener | |
27 * | |
28 * @since 3.0 | |
29 */ | |
30 public interface CloseWindowListener : DWTEventListener { | |
31 | |
32 /** | |
33 * This method is called when the window hosting a {@link Browser} should be closed. | |
34 * Application would typically close the {@link dwt.widgets.Shell} that | |
35 * hosts the <code>Browser</code>. The <code>Browser</code> is disposed after this | |
36 * notification. | |
37 * | |
38 * <p>The following fields in the <code>WindowEvent</code> apply: | |
39 * <ul> | |
40 * <li>(in) widget the <code>Browser</code> that is going to be disposed | |
41 * </ul></p> | |
42 * | |
43 * @param event the <code>WindowEvent</code> that specifies the <code>Browser</code> | |
44 * that is going to be disposed | |
45 * | |
46 * @see dwt.widgets.Shell#close() | |
47 * | |
48 * @since 3.0 | |
49 */ | |
50 public void close(WindowEvent event); | |
51 } |