com.objex.panywhere.events
Class TwinRelationshipChangeEvent

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

public class TwinRelationshipChangeEvent
extends java.util.EventObject

Event generated when twin relationship between two siblings is changed from one type to another

See Also:
Serialized Form

Field Summary
 boolean set
          Propertyy representing whether or not the relationship is to be set or removed.
 TWIN_RELATIONSHIP_STATUS status
          The twin relaionship being set or removed as a result of this event
 Individual[] twins
          The list of twins whose relationship status is being changed
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TwinRelationshipChangeEvent(java.lang.Object src, TWIN_RELATIONSHIP_STATUS status, Individual[] twins, 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 TWIN_RELATIONSHIP_STATUS status
The twin relaionship being set or removed as a result of this event


twins

public final Individual[] twins
The list of twins whose relationship status is being changed


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

TwinRelationshipChangeEvent

public TwinRelationshipChangeEvent(java.lang.Object src,
                                   TWIN_RELATIONSHIP_STATUS status,
                                   Individual[] twins,
                                   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"
twins - The twins whose status is being modified
ab_set - If true then the twin relationship is set. Otherwise it will be unset