Package org.eclipse.swt.browser
Class LocationEvent
java.lang.Object
java.util.EventObject
org.eclipse.swt.events.TypedEvent
org.eclipse.swt.browser.LocationEvent
- All Implemented Interfaces:
Serializable
A
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.- Since:
- 3.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanA flag indicating whether the location loading should be allowed.The URL of this event, escaped and encoded for consumption byURI(String).booleanA flag indicating whether the location opens in the top frame or not.Fields inherited from class org.eclipse.swt.events.TypedEvent
data, display, time, widgetFields inherited from class java.util.EventObject
source -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.EventObject
getSource
-
Field Details
-
location
The URL of this event, escaped and encoded for consumption byURI(String). -
top
public boolean topA flag indicating whether the location opens in the top frame or not. -
doit
public boolean doitA flag indicating whether the location loading should be allowed. Setting this field tofalsewill cancel the operation.
-
-
Constructor Details
-
LocationEvent
Constructs a new instance of this class.- Parameters:
widget- the widget that fired the event- Since:
- 3.5
-
-
Method Details
-
toString
Returns a string containing a concise, human-readable description of the receiver.- Overrides:
toStringin classTypedEvent- Returns:
- a string representation of the event
-