KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > swt > browser > LocationEvent


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 package org.eclipse.swt.browser;
12
13 import org.eclipse.swt.widgets.*;
14 import org.eclipse.swt.events.*;
15
16 /**
17  * A <code>LocationEvent</code> is sent by a {@link Browser} to
18  * {@link LocationListener}'s when the <code>Browser</code>
19  * navigates to a different URL. This notification typically
20  * occurs when the application navigates to a new location with
21  * {@link Browser#setUrl(String)} or when the user activates a
22  * hyperlink.
23  *
24  * @since 3.0
25  */

26 public class LocationEvent extends TypedEvent {
27     /** current location */
28     public String JavaDoc location;
29     
30     /**
31      * A flag indicating whether the location opens in the top frame
32      * or not.
33      */

34     public boolean top;
35     
36     /**
37      * A flag indicating whether the location loading should be allowed.
38      * Setting this field to <code>false</code> will cancel the operation.
39      */

40     public boolean doit;
41
42     static final long serialVersionUID = 3906644198244299574L;
43     
44 LocationEvent(Widget w) {
45     super(w);
46 }
47 }
48
Popular Tags