org.dinopolis.gpstool.gpsinput
Class GPSDataChangeEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byjava.beans.PropertyChangeEvent
          extended byorg.dinopolis.gpstool.gpsinput.GPSDataChangeEvent
All Implemented Interfaces:
java.io.Serializable

public class GPSDataChangeEvent
extends java.beans.PropertyChangeEvent

A "GPSDataChange" event gets delivered whenever GPS data changes. A GPSDataChangeEvent object is sent as an argument to the GPSDataChangeListener.

Normally GPSDataChangeEvents are accompanied by the name and the old and new value of the changed gps data. If the new value is a primitive type (such as int or boolean) it must be wrapped as the corresponding java.lang.Object type (such as Integer or Boolean).

Null values may be provided for the old and the new values if their true values are not known.

Version:
$Revision: 1.5 $
Author:
Christof Dallermassl
See Also:
Serialized Form

Constructor Summary
GPSDataChangeEvent(java.lang.Object source, java.lang.String property_name, java.lang.Object old_value, java.lang.Object new_value)
          Constructs a new GPSDataChangeEvent.
 
Methods inherited from class java.beans.PropertyChangeEvent
getNewValue, getOldValue, getPropagationId, getPropertyName, setPropagationId
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GPSDataChangeEvent

public GPSDataChangeEvent(java.lang.Object source,
                          java.lang.String property_name,
                          java.lang.Object old_value,
                          java.lang.Object new_value)
Constructs a new GPSDataChangeEvent.

Parameters:
source - The source that fired the event.
property_name - The programmatic name of the gps data that was changed.
old_value - The old value of the gps data.
new_value - The new value of the gps data.