Package org.eclipse.swt.browser
Class LocationAdapter
java.lang.Object
org.eclipse.swt.browser.LocationAdapter
- All Implemented Interfaces:
EventListener
,LocationListener
,SWTEventListener
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
changed
(LocationEvent event) This method is called when the current location is changed.void
changing
(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:LocationListener
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
- Specified by:
changing
in interfaceLocationListener
- Parameters:
event
- theLocationEvent
that specifies the location to be loaded by aBrowser
-
changed
Description copied from interface:LocationListener
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 orfalse
otherwise - (in) widget the
Browser
whose location has changed
- Specified by:
changed
in interfaceLocationListener
- Parameters:
event
- theLocationEvent
that specifies the new location of aBrowser
-