summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/CloseWindowListener.java
diff options
context:
space:
mode:
authorChristophe Cornu <ccornu>2003-11-25 19:10:01 +0000
committerChristophe Cornu <ccornu>2003-11-25 19:10:01 +0000
commit9ac563d598b74c64e08fe944870a8f408a3ef283 (patch)
tree6423d75701845aee53c04eeb1378abd3dae6271b /bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/CloseWindowListener.java
parenta4ee4710fc6e4a1d736dd84a3ba7c810a8050ad5 (diff)
downloadeclipse.platform.swt-9ac563d598b74c64e08fe944870a8f408a3ef283.tar.gz
eclipse.platform.swt-9ac563d598b74c64e08fe944870a8f408a3ef283.tar.xz
eclipse.platform.swt-9ac563d598b74c64e08fe944870a8f408a3ef283.zip
46751
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/CloseWindowListener.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/CloseWindowListener.java45
1 files changed, 45 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/CloseWindowListener.java b/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/CloseWindowListener.java
new file mode 100644
index 0000000000..f545a72520
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/CloseWindowListener.java
@@ -0,0 +1,45 @@
+/*******************************************************************************
+ * Copyright (c) 2003 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.swt.browser;
+
+import org.eclipse.swt.internal.SWTEventListener;
+
+/**
+ * This listener interface may be implemented in order to receive
+ * CloseWindowEvents.
+ *
+ * <p>
+ * NOTE: The API in the browser package is NOT finalized.
+ * Use at your own risk, because it will most certainly change.
+ * The only reason this API is being released at this time is so that
+ * other teams can try it out.
+ * </p>
+ *
+ * @see CloseWindowEvent
+ *
+ * @since 3.0
+ */
+public interface CloseWindowListener extends SWTEventListener {
+
+/**
+ * This method is called when the window hosting a browser should be closed.
+ * Application would typically close the Shell that hosts the browser.
+ * The browser is disposed after this notification.
+ * <p>
+ *
+ * @param event.widget the browser that is going to be disposed
+ *
+ * @see CloseWindowEvent
+ *
+ * @since 3.0
+ */
+public void close(CloseWindowEvent event);
+}