Mercurial > projects > dwt-linux
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dwt/browser/CloseWindowListener.d Thu Jul 31 19:17:51 2008 -0700 @@ -0,0 +1,51 @@ +/******************************************************************************* + * Copyright (c) 2003, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +module dwt.browser.CloseWindowListener; + +import dwt.dwthelper.utils; + +import dwt.internal.DWTEventListener; + +/** + * This listener interface may be implemented in order to receive + * a {@link WindowEvent} notification when a {@link Browser} is + * about to be closed and when its host window should be closed + * by the application. + * + * @see Browser#addCloseWindowListener(CloseWindowListener) + * @see Browser#removeCloseWindowListener(CloseWindowListener) + * @see OpenWindowListener + * @see VisibilityWindowListener + * + * @since 3.0 + */ +public interface CloseWindowListener : DWTEventListener { + +/** + * This method is called when the window hosting a {@link Browser} should be closed. + * Application would typically close the {@link dwt.widgets.Shell} that + * hosts the <code>Browser</code>. The <code>Browser</code> is disposed after this + * notification. + * + * <p>The following fields in the <code>WindowEvent</code> apply: + * <ul> + * <li>(in) widget the <code>Browser</code> that is going to be disposed + * </ul></p> + * + * @param event the <code>WindowEvent</code> that specifies the <code>Browser</code> + * that is going to be disposed + * + * @see dwt.widgets.Shell#close() + * + * @since 3.0 + */ + public void close(WindowEvent event); +}