KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > swt > browser > CloseWindowListener


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 package org.eclipse.swt.browser;
12
13 import org.eclipse.swt.internal.SWTEventListener;
14
15 /**
16  * This listener interface may be implemented in order to receive
17  * a {@link WindowEvent} notification when a {@link Browser} is
18  * about to be closed and when its host window should be closed
19  * by the application.
20  *
21  * @see Browser#addCloseWindowListener(CloseWindowListener)
22  * @see Browser#removeCloseWindowListener(CloseWindowListener)
23  * @see OpenWindowListener
24  * @see VisibilityWindowListener
25  *
26  * @since 3.0
27  */

28 public interface CloseWindowListener extends SWTEventListener {
29
30 /**
31  * This method is called when the window hosting a {@link Browser} should be closed.
32  * Application would typically close the {@link org.eclipse.swt.widgets.Shell} that
33  * hosts the <code>Browser</code>. The <code>Browser</code> is disposed after this
34  * notification.
35  *
36  * <p>The following fields in the <code>WindowEvent</code> apply:
37  * <ul>
38  * <li>(in) widget the <code>Browser</code> that is going to be disposed
39  * </ul></p>
40  *
41  * @param event the <code>WindowEvent</code> that specifies the <code>Browser</code>
42  * that is going to be disposed
43  *
44  * @see org.eclipse.swt.widgets.Shell#close()
45  *
46  * @since 3.0
47  */

48 public void close(WindowEvent event);
49 }
50
Popular Tags