Package org.eclipse.swt.browser
Interface LocationListener
- All Superinterfaces:
EventListener
,SWTEventListener
- All Known Implementing Classes:
LocationAdapter
This listener interface may be implemented in order to receive
a
LocationEvent
notification when a Browser
navigates to a different URL.-
Method Summary
Modifier and TypeMethodDescriptionvoid
changed
(LocationEvent event) This method is called when the current location is changed.static LocationListener
Static helper method to create aLocationListener
for thechanged(LocationEvent e)
) method, given a lambda expression or a method reference.void
changing
(LocationEvent event) This method is called when the current location is about to be changed.static LocationListener
Static helper method to create aLocationListener
for thechanging(LocationEvent e)
) method, given a lambda expression or a method reference.
-
Method Details
-
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
- theLocationEvent
that specifies the location to be loaded by aBrowser
- Since:
- 3.0
-
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 orfalse
otherwise - (in) widget the
Browser
whose location has changed
- Parameters:
event
- theLocationEvent
that specifies the new location of aBrowser
- Since:
- 3.0
-
changingAdapter
Static helper method to create aLocationListener
for thechanging(LocationEvent e)
) method, given a lambda expression or a method reference.- Parameters:
c
- the consumer of the event- Returns:
- LocationListener
- Since:
- 3.107
-
changedAdapter
Static helper method to create aLocationListener
for thechanged(LocationEvent e)
) method, given a lambda expression or a method reference.- Parameters:
c
- the consumer of the event- Returns:
- LocationListener
- Since:
- 3.107
-