1 /*******************************************************************************
2 * Copyright (c) 2003, 2016 IBM Corporation and others.
4 * This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License 2.0
6 * which accompanies this distribution, and is available at
7 * https://www.eclipse.org/legal/epl-2.0/
9 * SPDX-License-Identifier: EPL-2.0
12 * IBM Corporation - initial API and implementation
13 *******************************************************************************/
14 package org.eclipse.swt.browser;
16 import org.eclipse.swt.internal.*;
19 * This listener interface may be implemented in order to receive
20 * a {@link WindowEvent} notification when a {@link Browser} is
21 * about to be closed and when its host window should be closed
24 * @see Browser#addCloseWindowListener(CloseWindowListener)
25 * @see Browser#removeCloseWindowListener(CloseWindowListener)
26 * @see OpenWindowListener
27 * @see VisibilityWindowListener
32 public interface CloseWindowListener extends SWTEventListener {
35 * This method is called when the window hosting a {@link Browser} should be closed.
36 * Application would typically close the {@link org.eclipse.swt.widgets.Shell} that
37 * hosts the <code>Browser</code>. The <code>Browser</code> is disposed after this
40 * <p>The following fields in the <code>WindowEvent</code> apply:</p>
42 * <li>(in) widget the <code>Browser</code> that is going to be disposed
45 * @param event the <code>WindowEvent</code> that specifies the <code>Browser</code>
46 * that is going to be disposed
48 * @see org.eclipse.swt.widgets.Shell#close()
52 public void close(WindowEvent event);