Mercurial > projects > dwt-linux
comparison dwt/browser/ProgressListener.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 | eec6ddb07873 |
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 *******************************************************************************/ | |
11 module dwt.browser.ProgressListener; | |
12 | |
13 import dwt.dwthelper.utils; | |
14 | |
15 import dwt.internal.DWTEventListener; | |
16 | |
17 /** | |
18 * This listener interface may be implemented in order to receive | |
19 * a {@link ProgressEvent} notification when a {@link Browser} | |
20 * makes a progress in loading the current URL or when the | |
21 * current URL has been loaded. | |
22 * | |
23 * @see Browser#addProgressListener(ProgressListener) | |
24 * @see Browser#removeProgressListener(ProgressListener) | |
25 * @see Browser#getUrl() | |
26 * | |
27 * @since 3.0 | |
28 */ | |
29 public interface ProgressListener extends DWTEventListener { | |
30 | |
31 /** | |
32 * This method is called when a progress is made during the loading of the | |
33 * current location. | |
34 * <p> | |
35 * | |
36 * <p>The following fields in the <code>ProgressEvent</code> apply: | |
37 * <ul> | |
38 * <li>(in) current the progress for the location currently being loaded | |
39 * <li>(in) total the maximum progress for the location currently being loaded | |
40 * <li>(in) widget the <code>Browser</code> whose current URL is being loaded | |
41 * </ul> | |
42 * | |
43 * @param event the <code>ProgressEvent</code> related to the loading of the | |
44 * current location of a <code>Browser</code> | |
45 * | |
46 * @since 3.0 | |
47 */ | |
48 public void changed(ProgressEvent event); | |
49 | |
50 /** | |
51 * This method is called when the current location has been completely loaded. | |
52 * <p> | |
53 * | |
54 * <p>The following fields in the <code>ProgressEvent</code> apply: | |
55 * <ul> | |
56 * <li>(in) widget the <code>Browser</code> whose current URL has been loaded | |
57 * </ul> | |
58 * | |
59 * @param event the <code>ProgressEvent</code> related to the <code>Browser</code> | |
60 * that has loaded its current URL. | |
61 * | |
62 * @since 3.0 | |
63 */ | |
64 public void completed(ProgressEvent event); | |
65 } |