com.objex.panywhere
Class IndividualAddEvent

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

public class IndividualAddEvent
extends java.util.EventObject

An event which is generated every time an Individual is added to the Pedigree. To rgeister for the individual add event, use ProgenyAnywhere.addIndividualAddListener() method.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
IndividualAddEvent(java.lang.Object source, Individual a_added_individual, Individual a_toindividual)
          Creates a new instance of IndividualAddEvent.
 
Method Summary
 Individual getAddedIndividual()
          Getter for property addedIndividual.
 Individual getToIndividual()
           
 
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

IndividualAddEvent

public IndividualAddEvent(java.lang.Object source,
                          Individual a_added_individual,
                          Individual a_toindividual)
Creates a new instance of IndividualAddEvent.

Parameters:
source - SOurce of the event. Usually the Family object
a_added_individual - The Individual just added
a_toindividual - The Individual to whom the new person was added. This may be null if person was added unconnected
Method Detail

getAddedIndividual

public Individual getAddedIndividual()
Getter for property addedIndividual.

Returns:
Value of property addedIndividual. AddedIndividual is the Individual whose addition to the Pedigree Family Model resulted in the generation of this Event.

getToIndividual

public Individual getToIndividual()