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
The URL of this event, escaped and encoded for consumption by
URI.URI(String). |
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
URI.URI(String).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 TypedEvent
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.