com.objex.panywhere.events
Class RelationshipDeleteEvent

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

public class RelationshipDeleteEvent
extends java.util.EventObject

Event generated when a relationship or line between two people is deleted through user actions

See Also:
Serialized Form

Field Summary
static int CHILD
          Child relationship
static int PARENTAL
          Parental relationship
 Individual person1
          The first person in the relationship being deleted
 Individual person2
          The 2nd person in the relationship being deleted.
 int relType
          The deleted relationship line.
static int SIBLING
          Sibling relationship
static int SPOUSAL
          Souse relationship
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
RelationshipDeleteEvent(java.lang.Object src, Individual a_ind1, Individual a_ind2, int ai_relationship_type)
           
 
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

SPOUSAL

public static final int SPOUSAL
Souse relationship

See Also:
Constant Field Values

PARENTAL

public static final int PARENTAL
Parental relationship

See Also:
Constant Field Values

CHILD

public static final int CHILD
Child relationship

See Also:
Constant Field Values

SIBLING

public static final int SIBLING
Sibling relationship

See Also:
Constant Field Values

person1

public final Individual person1
The first person in the relationship being deleted


person2

public final Individual person2
The 2nd person in the relationship being deleted. If the relationship being deleted is SPOUSAL then this will be the spouse of person1.
If the relationship being deleted is RelationshipDeleteEvent.PARENTAL then this will be any one of person1's children. This value helps to determine which relationship was really deleted in cases where "person1" has more than one of the type of relationship being deleted


relType

public final int relType
The deleted relationship line. Can be any one of
RelationshipDeleteEvent.SPOUSAL
RelationshipDeleteEvent.PARENTAL
RelationshipDeleteEvent.CHILD
RelationshipDeleteEvent.SIBLING

Constructor Detail

RelationshipDeleteEvent

public RelationshipDeleteEvent(java.lang.Object src,
                               Individual a_ind1,
                               Individual a_ind2,
                               int ai_relationship_type)
Parameters:
src -
a_ind1 - The first individual in the relationship being destroyed.
a_ind2 - The 2nd inidvidual in the relationship being destroyed. For child and sibling lines, this value is null.
ai_relationship_type - The relationship type represing the relationship of "a_ind2" to "a_ind2". It can be any one of
RelationshipDeleteEvent.SPOUSAL
RelationshipDeleteEvent.PARENTAL
RelationshipDeleteEvent.CHILD
RelationshipDeleteEvent.SIBLING