comparison dwt/browser/LocationListener.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.LocationListener;
15
16 import dwt.browser.LocationEvent;
17 import dwt.internal.DWTEventListener;
18
19 /**
20 * This listener interface may be implemented in order to receive
21 * a {@link LocationEvent} notification when a {@link Browser}
22 * navigates to a different URL.
23 *
24 * @see Browser#addLocationListener(LocationListener)
25 * @see Browser#removeLocationListener(LocationListener)
26 *
27 * @since 3.0
28 */
29 public interface LocationListener : DWTEventListener {
30
31 /**
32 * This method is called when the current location is about to be changed.
33 * <p>
34 *
35 * <p>The following fields in the <code>LocationEvent</code> apply:
36 * <ul>
37 * <li>(in) location the location to be loaded
38 * <li>(in) widget the <code>Browser</code> whose location is changing
39 * <li>(in/out) doit can be set to <code>false</code> to prevent the location
40 * from being loaded
41 * </ul>
42 *
43 * @param event the <code>LocationEvent</code> that specifies the location
44 * to be loaded by a <code>Browser</code>
45 *
46 * @since 3.0
47 */
48 public void changing (LocationEvent event);
49
50 /**
51 * This method is called when the current location is changed.
52 * <p>
53 *
54 * <p>The following fields in the <code>LocationEvent</code> apply:
55 * <ul>
56 * <li>(in) location the current location
57 * <li>(in) top <code>true</code> if the location opens in the top frame or
58 * <code>false</code> otherwise
59 * <li>(in) widget the <code>Browser</code> whose location has changed
60 * </ul>
61 *
62 * @param event the <code>LocationEvent</code> that specifies the new
63 * location of a <code>Browser</code>
64 *
65 * @since 3.0
66 */
67 public void changed (LocationEvent event);
68
69 }