Package org.eclipse.swt.browser
Interface LocationListener
-
- All Superinterfaces:
EventListener,SWTEventListener
- All Known Implementing Classes:
LocationAdapter
public interface LocationListener extends SWTEventListener
This listener interface may be implemented in order to receive aLocationEventnotification when aBrowsernavigates to a different URL.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidchanged(LocationEvent event)This method is called when the current location is changed.static LocationListenerchangedAdapter(Consumer<LocationEvent> c)Static helper method to create aLocationListenerfor thechanged(LocationEvent e)) method, given a lambda expression or a method reference.voidchanging(LocationEvent event)This method is called when the current location is about to be changed.static LocationListenerchangingAdapter(Consumer<LocationEvent> c)Static helper method to create aLocationListenerfor thechanging(LocationEvent e)) method, given a lambda expression or a method reference.
-
-
-
Method Detail
-
changing
void changing(LocationEvent event)
This 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
- Parameters:
event- theLocationEventthat specifies the location to be loaded by aBrowser- Since:
- 3.0
-
changed
void changed(LocationEvent event)
This 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
- Parameters:
event- theLocationEventthat specifies the new location of aBrowser- Since:
- 3.0
-
changingAdapter
static LocationListener changingAdapter(Consumer<LocationEvent> c)
Static helper method to create aLocationListenerfor 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 LocationListener changedAdapter(Consumer<LocationEvent> c)
Static helper method to create aLocationListenerfor thechanged(LocationEvent e)) method, given a lambda expression or a method reference.- Parameters:
c- the consumer of the event- Returns:
- LocationListener
- Since:
- 3.107
-
-