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
public class LocationEvent extends TypedEvent
ALocationEventis sent by aBrowsertoLocationListener's when theBrowsernavigates 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 booleandoitA flag indicating whether the location loading should be allowed.StringlocationThe URL of this event, escaped and encoded for consumption byURI(String).booleantopA 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
-
Fields inherited from class java.util.EventObject
source
-
-
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 StringtoString()Returns a string containing a concise, human-readable description of the receiver.-
Methods inherited from class java.util.EventObject
getSource
-
-
-
-
Field Detail
-
location
public 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 tofalsewill 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 String toString()
Returns a string containing a concise, human-readable description of the receiver.- Overrides:
toStringin classTypedEvent- Returns:
- a string representation of the event
-
-