Package org.eclipse.swt.browser
Class LocationAdapter
java.lang.Object
org.eclipse.swt.browser.LocationAdapter
- All Implemented Interfaces:
LocationListener
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.
- Since:
- 1.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchanged(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.
-
Constructor Details
-
LocationAdapter
public LocationAdapter()
-
-
Method Details
-
changing
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
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
-