comparison dwt/browser/ProgressEvent.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
comparison
equal deleted inserted replaced
277:687f261028b8 278:93409d9838c5
1 /*******************************************************************************
2 * Copyright (c) 2003, 2004 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * IBM Corporation - initial API and implementation
10 * Port to the D programming language:
11 * John Reimer <terminal.node@gmail.com>
12 *******************************************************************************/
13 module dwt.browser.ProgressEvent;
14
15 import dwt.dwthelper.utils;
16
17 import dwt.events.TypedEvent;
18 import dwt.widgets.Widget;
19
20 /**
21 * A <code>ProgressEvent</code> is sent by a {@link Browser} to
22 * {@link ProgressListener}'s when a progress is made during the
23 * loading of the current URL or when the loading of the current
24 * URL has been completed.
25 *
26 * @since 3.0
27 */
28 public class ProgressEvent : TypedEvent {
29 /** current value */
30 public int current;
31 /** total value */
32 public int total;
33
34 static final long serialVersionUID = 3977018427045393972L;
35
36 this(Widget w) {
37 super(w);
38 }
39
40 /**
41 * Returns a string containing a concise, human-readable
42 * description of the receiver.
43 *
44 * @return a string representation of the event
45 */
46
47 public override String toString () {
48 return Format( "ProgressEvent { current={} total={} }",
49 current, total );
50 }
51 }