Package org.eclipse.swt.browser
Class LocationAdapter
- java.lang.Object
-
- org.eclipse.swt.browser.LocationAdapter
-
- All Implemented Interfaces:
LocationListener
public abstract class LocationAdapter extends java.lang.Object implements LocationListener
This adapter class provides default implementations for the methods described by theLocationListenerinterface.Classes that wish to deal with
LocationEvent's can extend this class and override only the methods which they are interested in.- Since:
- 1.3
-
-
Constructor Summary
Constructors Constructor Description LocationAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchanged(LocationEvent event)This method is called when the current location is changed.voidchanging(LocationEvent event)This method is called when the current location is about to be changed.
-
-
-
Method Detail
-
changing
public void changing(LocationEvent event)
Description copied from interface:LocationListenerThis method is called when the current location is about to be changed.The following fields in the
LocationEventapply:- (in) location the location to be loaded
- (in) widget the
Browserwhose location is changing - (in/out) doit can be set to
falseto prevent the location from being loaded
- Specified by:
changingin interfaceLocationListener- Parameters:
event- theLocationEventthat specifies the location to be loaded by aBrowser
-
changed
public void changed(LocationEvent event)
Description copied from interface:LocationListenerThis method is called when the current location is changed.The following fields in the
LocationEventapply:- (in) location the current location
- (in) top
trueif the location opens in the top frame orfalseotherwise - (in) widget the
Browserwhose location has changed
- Specified by:
changedin interfaceLocationListener- Parameters:
event- theLocationEventthat specifies the new location of aBrowser
-
-