Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.geolocation.event
Class LocalPositionChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by java.beans.PropertyChangeEvent
          extended by net.java.sip.communicator.service.geolocation.event.LocalPositionChangeEvent
All Implemented Interfaces:
Serializable

public class LocalPositionChangeEvent
extends PropertyChangeEvent

Instances of this class represent a change in the Geolocation of the provider that triggerred them.

Author:
Guillaume Schreiner
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
LocalPositionChangeEvent(ProtocolProviderService source, Map oldValue, Map newValue)
          Creates an event instance indicating a change of the property specified by eventType from oldValue to newValue.
 
Method Summary
 Map getNewGeolocation()
          Returns the Geolocation of the provider after this event took place.
 Map getOldGeolocation()
          Returns the Geolocation of the provider before this event took place.
 ProtocolProviderService getProvider()
          Returns the provider that has genereted this event
 String toString()
          Returns a String representation of this LocalPositionChangeEvent
 
Methods inherited from class java.beans.PropertyChangeEvent
getNewValue, getOldValue, getPropagationId, getPropertyName, setPropagationId
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalPositionChangeEvent

public LocalPositionChangeEvent(ProtocolProviderService source,
                                Map oldValue,
                                Map newValue)
Creates an event instance indicating a change of the property specified by eventType from oldValue to newValue.

Parameters:
source - the provider that generated the event
oldValue - the Geolocation the source provider was int before entering the new state.
newValue - the Geolocation the source provider is currently in.
Method Detail

getProvider

public ProtocolProviderService getProvider()
Returns the provider that has genereted this event

Returns:
the provider that generated the event.

getOldGeolocation

public Map getOldGeolocation()
Returns the Geolocation of the provider before this event took place.

Returns:
a Geolocation instance indicating the event the source provider was in before it entered its new state.

getNewGeolocation

public Map getNewGeolocation()
Returns the Geolocation of the provider after this event took place. (i.e. at the time the event is being dispatched).

Returns:
a Geolocation instance indicating the event the source provider is in after the Geolocation change occurred.

toString

public String toString()
Returns a String representation of this LocalPositionChangeEvent

Overrides:
toString in class EventObject
Returns:
A a String representation of this LocalPositionChangeEvent.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.