com.objex.panywhere.events
Class IndividualPropertyChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.objex.panywhere.events.IndividualPropertyChangeEvent
All Implemented Interfaces:
java.io.Serializable

public class IndividualPropertyChangeEvent
extends java.util.EventObject

Event generated when Individual properties change

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
IndividualPropertyChangeEvent(java.lang.Object src, Individual a_individual, INDIVIDUAL_PROPERTY property, java.lang.Object oldValue, java.lang.Object newValue)
          Create new instance of IndividualPropertyChangeEvent
 
Method Summary
 Individual getIndividual()
           
 java.lang.Object getNewValue()
           
 java.lang.Object getOldValue()
           
 INDIVIDUAL_PROPERTY getProperty()
           
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IndividualPropertyChangeEvent

public IndividualPropertyChangeEvent(java.lang.Object src,
                                     Individual a_individual,
                                     INDIVIDUAL_PROPERTY property,
                                     java.lang.Object oldValue,
                                     java.lang.Object newValue)
Create new instance of IndividualPropertyChangeEvent

Parameters:
src - The source of the event
a_individual - The person for whom the property change occured
property - The property that changed
oldValue - The old value of that property on the Individual object
newValue - The new value to be assigned to that property on the Individual object
Method Detail

getProperty

public INDIVIDUAL_PROPERTY getProperty()
Returns:
The enum that identifies the property being changed

getOldValue

public java.lang.Object getOldValue()
Returns:
The old value of the property

getNewValue

public java.lang.Object getNewValue()
Returns:
The new value of the property

getIndividual

public Individual getIndividual()
Returns:
The indivdual for whom the event is being dispatched