public abstract class LocationAdapter extends Object implements LocationListener
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.
| Constructor and Description |
|---|
LocationAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchangedAdapter, changingAdapterpublic void changing(LocationEvent event)
LocationListener
The following fields in the LocationEvent apply:
Browser whose location is changing
false to prevent the location
from being loaded
changing in interface LocationListenerevent - the LocationEvent that specifies the location
to be loaded by a Browserpublic void changed(LocationEvent event)
LocationListener
The following fields in the LocationEvent apply:
true if the location opens in the top frame or
false otherwise
Browser whose location has changed
changed in interface LocationListenerevent - the LocationEvent that specifies the new
location of a Browser
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.