com.objex.panywhere
Class AddEvent

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

public class AddEvent
extends java.util.EventObject

An event which is generated every time an Individual is added to the Pedigree using any one of the methods available. An AddEvent is passed to all AddListeners. Interested classes must register for receieving these events using the Family Model's addAddListener() method.

See Also:
Serialized Form

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

AddEvent

public AddEvent(java.lang.Object source,
                Individual ind)
Creates a new instance of AddEvent.

Parameters:
source - Pedigree Family Model onto which the Individual has been added
ind - The Individual just added
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.