summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org
diff options
context:
space:
mode:
authorChristophe Cornu <ccornu>2003-08-19 19:49:21 +0000
committerChristophe Cornu <ccornu>2003-08-19 19:49:21 +0000
commitc6bfd6a5ac8fe7b65e66f94f8b088694a27b6a6e (patch)
tree7a0391318b747d4aa76550ceb4c9f9eaaf371deb /bundles/org.eclipse.swt/Eclipse SWT Browser/common/org
parent2c66c9703a9f48fd5a877ee0270f1999b63be763 (diff)
downloadeclipse.platform.swt-c6bfd6a5ac8fe7b65e66f94f8b088694a27b6a6e.tar.gz
eclipse.platform.swt-c6bfd6a5ac8fe7b65e66f94f8b088694a27b6a6e.tar.xz
eclipse.platform.swt-c6bfd6a5ac8fe7b65e66f94f8b088694a27b6a6e.zip
Browser widget
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Browser/common/org')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/LocationEvent.java27
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/LocationListener.java32
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/ProgressEvent.java30
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/ProgressListener.java40
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/StatusTextEvent.java28
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/StatusTextListener.java32
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/package.html15
7 files changed, 204 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/LocationEvent.java b/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/LocationEvent.java
new file mode 100644
index 0000000000..3704beb064
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/LocationEvent.java
@@ -0,0 +1,27 @@
+/*******************************************************************************
+ * 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.widgets.*;
+import org.eclipse.swt.events.*;
+
+/**
+ * This event is sent to LocationListeners when the location
+ * is changed.
+ */
+public class LocationEvent extends TypedEvent {
+ /** current location */
+ public String location;
+
+ LocationEvent(Widget w) {
+ super(w);
+ }
+}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/LocationListener.java b/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/LocationListener.java
new file mode 100644
index 0000000000..f68e8d50a0
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/LocationListener.java
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * 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
+ * LocationEvents.
+ *
+ * @see LocationEvent
+ */
+public interface LocationListener extends SWTEventListener {
+
+ /**
+ * This method is called when the current location is changed.
+ * <p>
+ *
+ * @param event.location the current location
+ *
+ * @see LocationEvent
+ */
+ public void changed(LocationEvent event);
+}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/ProgressEvent.java b/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/ProgressEvent.java
new file mode 100644
index 0000000000..56f8bf07c4
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/ProgressEvent.java
@@ -0,0 +1,30 @@
+/*******************************************************************************
+ * 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.widgets.*;
+import org.eclipse.swt.events.*;
+
+/**
+ * This event is sent to ProgressListeners when a progress is made
+ * during the loading of the current URI or when the loading of the
+ * current URI has been completed.
+ */
+public class ProgressEvent extends TypedEvent {
+ /** current value */
+ public int current;
+ /** total value */
+ public int total;
+
+ ProgressEvent(Widget w) {
+ super(w);
+ }
+} \ No newline at end of file
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/ProgressListener.java b/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/ProgressListener.java
new file mode 100644
index 0000000000..fac176f203
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/ProgressListener.java
@@ -0,0 +1,40 @@
+/*******************************************************************************
+ * 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
+ * ProgressEvents.
+ * @see ProgressEvent
+ */
+public interface ProgressListener extends SWTEventListener {
+
+ /**
+ * This method is called when a progress is made during the loading of the current location.
+ * <p>
+ *
+ * @param event.current the progress for the location currently being loaded
+ * @param event.total the maximum progress for the location currently being loaded
+ *
+ * @see ProgressEvent
+ */
+ public void changed(ProgressEvent event);
+
+ /**
+ * This method is called when the current location has been completely loaded.
+ * <p>
+ *
+ * @see ProgressEvent
+ */
+ public void completed(ProgressEvent event);
+} \ No newline at end of file
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/StatusTextEvent.java b/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/StatusTextEvent.java
new file mode 100644
index 0000000000..07ebb46687
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/StatusTextEvent.java
@@ -0,0 +1,28 @@
+/*******************************************************************************
+ * 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.widgets.*;
+import org.eclipse.swt.events.*;
+
+/**
+ * This event is sent to StatusTextListeners when the status text
+ * is changed. The status text is typically displayed in the status
+ * bar of a browser.
+ */
+public class StatusTextEvent extends TypedEvent {
+ /** status text */
+ public String text;
+
+ StatusTextEvent(Widget w) {
+ super(w);
+ }
+} \ No newline at end of file
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/StatusTextListener.java b/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/StatusTextListener.java
new file mode 100644
index 0000000000..a0057dceb0
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/StatusTextListener.java
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * 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
+ * StatusTextEvents.
+ * @see StatusTextEvent
+ */
+public interface StatusTextListener extends SWTEventListener {
+
+/**
+ * This method is called when the status text is changed. The
+ * status text is typically showed in the status bar of a browser.
+ * <p>
+ *
+ * @param event.text the modified status text
+ *
+ * @see StatusTextEvent
+ */
+public void changed(StatusTextEvent event);
+} \ No newline at end of file
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/package.html b/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/package.html
new file mode 100644
index 0000000000..30bd85ec84
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/package.html
@@ -0,0 +1,15 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="Author" content="IBM">
+ <title>Package-level Javadoc</title>
+</head>
+<body>
+SWT Browser widget.
+<h2>
+Package Specification</h2>
+This package provides the classes to implement the browser user interface
+metaphor.
+</body>
+</html>