org.eclipse.swt.browser
public class LocationEvent extends TypedEvent
LocationEvent is sent by a Browser to
LocationListener's when the Browser
navigates to a different URL. This notification typically
occurs when the application navigates to a new location with
Browser.setUrl(String) or when the user activates a
hyperlink.| Modifier and Type | Field and Description |
|---|---|
boolean |
doit
A flag indicating whether the location loading should be allowed.
|
String |
location
current location
|
boolean |
top
A flag indicating whether the location opens in the top frame
or not.
|
data, display, time, widgetsource| Constructor and Description |
|---|
LocationEvent(Widget widget)
Constructs a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString()
Returns a string containing a concise, human-readable
description of the receiver.
|
getSourcepublic String location
public boolean top
public boolean doit
false will cancel the operation.public LocationEvent(Widget widget)
widget - the widget that fired the eventpublic String toString()
toString in class TypedEventGuidelines for using Eclipse APIs. Copyright (c) Eclipse contributors and others 2000, 2011. All rights reserved.