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:
java.io.Serializable
public class LocationEvent extends TypedEvent
ALocationEvent
is sent by aBrowser
toLocationListener
's when theBrowser
navigates to a different URL. This notification typically occurs when the application navigates to a new location withBrowser.setUrl(String)
or when the user activates a hyperlink.- Since:
- 3.0
- See Also:
- Sample code and further information, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description boolean
doit
A flag indicating whether the location loading should be allowed.java.lang.String
location
The URL of this event, escaped and encoded for consumption byURI(String)
.boolean
top
A flag indicating whether the location opens in the top frame or not.-
Fields inherited from class org.eclipse.swt.events.TypedEvent
data, display, time, widget
-
-
Constructor Summary
Constructors Constructor Description LocationEvent(Widget widget)
Constructs a new instance of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
Returns a string containing a concise, human-readable description of the receiver.
-
-
-
Field Detail
-
location
public java.lang.String location
The URL of this event, escaped and encoded for consumption byURI(String)
.
-
top
public boolean top
A flag indicating whether the location opens in the top frame or not.
-
doit
public boolean doit
A flag indicating whether the location loading should be allowed. Setting this field tofalse
will cancel the operation.
-
-
Constructor Detail
-
LocationEvent
public LocationEvent(Widget widget)
Constructs a new instance of this class.- Parameters:
widget
- the widget that fired the event- Since:
- 3.5
-
-
Method Detail
-
toString
public java.lang.String toString()
Returns a string containing a concise, human-readable description of the receiver.- Overrides:
toString
in classTypedEvent
- Returns:
- a string representation of the event
-
-