Top Description Fields Constructors Methods
org.eclipse.swt.browser

public Class LocationEvent

extends TypedEvent
Class Inheritance
Imports
org.eclipse.swt.events.*, org.eclipse.swt.widgets.*

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
Sample code and further information

Field Summary

Modifier and TypeField and Description
public boolean
doit

A flag indicating whether the location loading should be allowed.

public String
location

The URL of this event, escaped and encoded for consumption by java.net.URI#URI(String).

pack-priv static final long
public boolean
top

A flag indicating whether the location opens in the top frame or not.

Inherited from org.eclipse.swt.events.TypedEvent:
datadisplaytimewidget

Constructor Summary

AccessConstructor and Description
public
LocationEvent(Widget
the widget that fired the event
widget
)

Constructs a new instance of this class.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

a string representation of the event
toString
()

Overrides org.eclipse.swt.events.TypedEvent.toString.

Returns a string containing a concise, human-readable description of the receiver.

Field Detail

doitback to summary
public boolean doit

A flag indicating whether the location loading should be allowed. Setting this field to false will cancel the operation.

locationback to summary
public String location

The URL of this event, escaped and encoded for consumption by java.net.URI#URI(String).

serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides org.eclipse.swt.events.TypedEvent.serialVersionUID.

topback to summary
public boolean top

A flag indicating whether the location opens in the top frame or not.

Constructor Detail

LocationEventback to summary
public LocationEvent(Widget widget)

Constructs a new instance of this class.

Parameters
widget:Widget

the widget that fired the event

Since
3.5

Method Detail

toStringback to summary
public String toString()

Overrides org.eclipse.swt.events.TypedEvent.toString.

Returns a string containing a concise, human-readable description of the receiver.

Returns:String

a string representation of the event

Annotations
@Override