Package org.eclipse.swt.browser
Class LocationAdapter
java.lang.Object
org.eclipse.swt.browser.LocationAdapter
- All Implemented Interfaces:
- EventListener,- 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.
 
 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:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
LocationAdapterpublic LocationAdapter()
 
- 
- 
Method Details- 
changingDescription 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 interface- LocationListener
- Parameters:
- event- the- LocationEventthat specifies the location to be loaded by a- Browser
 
- 
changedDescription 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 interface- LocationListener
- Parameters:
- event- the- LocationEventthat specifies the new location of a- Browser
 
 
-