Mercurial > projects > dwt-mac
comparison dwt/browser/ProgressListener.d @ 0:380af2bdd8e5
Upload of whole dwt tree
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Sat, 09 Aug 2008 17:00:02 +0200 |
parents | |
children | f565d3a95c0a |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:380af2bdd8e5 |
---|---|
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 * Port to the D Programming language: | |
12 * Jacob Carlborg <jacob.carlborg@gmail.com> | |
13 *******************************************************************************/ | |
14 module dwt.browser.ProgressListener; | |
15 | |
16 import dwt.browser.ProgressEvent; | |
17 import dwt.dwthelper.utils; | |
18 import dwt.internal.DWTEventListener; | |
19 | |
20 /** | |
21 * This listener interface may be implemented in order to receive | |
22 * a {@link ProgressEvent} notification when a {@link Browser} | |
23 * makes a progress in loading the current URL or when the | |
24 * current URL has been loaded. | |
25 * | |
26 * @see Browser#addProgressListener(ProgressListener) | |
27 * @see Browser#removeProgressListener(ProgressListener) | |
28 * @see Browser#getUrl() | |
29 * | |
30 * @since 3.0 | |
31 */ | |
32 public interface ProgressListener : DWTEventListener { | |
33 | |
34 /** | |
35 * This method is called when a progress is made during the loading of the | |
36 * current location. | |
37 * <p> | |
38 * | |
39 * <p>The following fields in the <code>ProgressEvent</code> apply: | |
40 * <ul> | |
41 * <li>(in) current the progress for the location currently being loaded | |
42 * <li>(in) total the maximum progress for the location currently being loaded | |
43 * <li>(in) widget the <code>Browser</code> whose current URL is being loaded | |
44 * </ul> | |
45 * | |
46 * @param event the <code>ProgressEvent</code> related to the loading of the | |
47 * current location of a <code>Browser</code> | |
48 * | |
49 * @since 3.0 | |
50 */ | |
51 public void changed (ProgressEvent event); | |
52 | |
53 /** | |
54 * This method is called when the current location has been completely loaded. | |
55 * <p> | |
56 * | |
57 * <p>The following fields in the <code>ProgressEvent</code> apply: | |
58 * <ul> | |
59 * <li>(in) widget the <code>Browser</code> whose current URL has been loaded | |
60 * </ul> | |
61 * | |
62 * @param event the <code>ProgressEvent</code> related to the <code>Browser</code> | |
63 * that has loaded its current URL. | |
64 * | |
65 * @since 3.0 | |
66 */ | |
67 public void completed (ProgressEvent event); | |
68 } |