1 /*******************************************************************************
2 * Copyright (c) 2003, 2009 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.widgets.*;
17 import org.eclipse.swt.events.*;
20 * A <code>ProgressEvent</code> is sent by a {@link Browser} to
21 * {@link ProgressListener}'s when a progress is made during the
22 * loading of the current URL or when the loading of the current
23 * URL has been completed.
25 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
29 public class ProgressEvent extends TypedEvent {
35 static final long serialVersionUID = 3977018427045393972L;
38 * Constructs a new instance of this class.
40 * @param widget the widget that fired the event
44 public ProgressEvent(Widget widget) {
49 * Returns a string containing a concise, human-readable
50 * description of the receiver.
52 * @return a string representation of the event
55 public String toString() {
56 String string = super.toString ();
57 return string.substring (0, string.length() - 1) // remove trailing '}'
58 + " current=" + current