com.objex.panywhere.events
Class RelationshipChangeEvent

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

public class RelationshipChangeEvent
extends java.util.EventObject

Event generated when relationship changes occur between persons in a pedigree

See Also:
Serialized Form

Field Summary
 Individual ind
          1St person in the spousal relationship
 boolean set
          Propertyy representing whether or not the relationship is to be set or removed.
 Individual spouse
          2nd person in the spousal relationship or the spouse
 SPOUSE_RELATIONSHIP_STATUS status
          The old RelationshipStatus
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
RelationshipChangeEvent(java.lang.Object src, SPOUSE_RELATIONSHIP_STATUS status, Individual ind, Individual spouse, boolean ab_set)
          Create a new relationship event with information representing the change in status
 
Method Summary
 
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
 

Field Detail

status

public final SPOUSE_RELATIONSHIP_STATUS status
The old RelationshipStatus


ind

public final Individual ind
1St person in the spousal relationship


spouse

public final Individual spouse
2nd person in the spousal relationship or the spouse


set

public final boolean set
Propertyy representing whether or not the relationship is to be set or removed. If true then set. Otherwise unset

Constructor Detail

RelationshipChangeEvent

public RelationshipChangeEvent(java.lang.Object src,
                               SPOUSE_RELATIONSHIP_STATUS status,
                               Individual ind,
                               Individual spouse,
                               boolean ab_set)
Create a new relationship event with information representing the change in status

Parameters:
src - Source of event
status - The relationship status in question. It can be either removed or set depending on the value of param "ab_set"
ind - 1st individual in relationship
spouse - 2nd individual in relationship
ab_set - If true then the spouse relationship is set. Otherwise it will be unset