Top Description Constructors Methods
org.eclipse.swt.browser

public abstract Class LocationAdapter

extends Object
implements LocationListener
Class Inheritance
All Implemented Interfaces
org.eclipse.swt.browser.LocationListener, org.eclipse.swt.internal.SWTEventListener, java.util.EventListener

This adapter class provides default implementations for the methods described by the LocationListener interface.

Classes that wish to deal with LocationEvent's can extend this class and override only the methods which they are interested in.

An alternative to this class are the static helper methods in LocationListener, which accept a lambda expression or a method reference that implements the event consumer.

Since
3.0
See Also
Sample code and further information

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
changed(LocationEvent
the LocationEvent that specifies the new location of a Browser
event
)

Implements org.eclipse.swt.browser.LocationListener.changed.

This method is called when the current location is changed.
public void
changing(LocationEvent
the LocationEvent that specifies the location to be loaded by a Browser
event
)

Implements org.eclipse.swt.browser.LocationListener.changing.

This method is called when the current location is about to be changed.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

LocationAdapterback to summary
public LocationAdapter()

Method Detail

changedback to summary
public void changed(LocationEvent event)

Implements org.eclipse.swt.browser.LocationListener.changed.

Doc from org.eclipse.swt.browser.LocationListener.changed.

This method is called when the current location is changed.

The following fields in the LocationEvent apply:

  • (in) location the current location
  • (in) top true if the location opens in the top frame or false otherwise
  • (in) widget the Browser whose location has changed
Parameters
event:LocationEvent

the LocationEvent that specifies the new location of a Browser

Annotations
@Override
changingback to summary
public void changing(LocationEvent event)

Implements org.eclipse.swt.browser.LocationListener.changing.

Doc from org.eclipse.swt.browser.LocationListener.changing.

This method is called when the current location is about to be changed.

The following fields in the LocationEvent apply:

  • (in) location the location to be loaded
  • (in) widget the Browser whose location is changing
  • (in/out) doit can be set to false to prevent the location from being loaded
Parameters
event:LocationEvent

the LocationEvent that specifies the location to be loaded by a Browser

Annotations
@Override