com.objex.panywhere.events
Class RelationshipConnectionEvent

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

public class RelationshipConnectionEvent
extends java.util.EventObject
implements java.io.Serializable

Event generated when two persons are connected in to one another through user actions in the pedigree.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
RelationshipConnectionEvent(java.lang.Object src, Individual a_ind1, Individual a_ind2, RELATIONSHIP a_type)
           
 
Method Summary
 Individual getConnectIndividual()
           
 Individual getFromIndividual()
           
 RELATIONSHIP getRelType()
           
 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

RelationshipConnectionEvent

public RelationshipConnectionEvent(java.lang.Object src,
                                   Individual a_ind1,
                                   Individual a_ind2,
                                   RELATIONSHIP a_type)
Parameters:
src -
a_ind1 - The first individual in the relationship being created or destroyed. If connection, the individual to whim the connection is being made
a_ind2 - The 2nd inidvidual in the relationship being created or destroyed.
a_type - The relationship type represing the relationship of "a_ind2" to "a_ind2".
Method Detail

getToIndividual

public Individual getToIndividual()
Returns:
the toIndividual

getFromIndividual

public Individual getFromIndividual()
Returns:
The individual from whom the disconnect was made. This can be any one of the two individuals involved in the relationships being deleted.

getConnectIndividual

public Individual getConnectIndividual()
Returns:
the connectIndividual

getRelType

public RELATIONSHIP getRelType()
Returns:
The relationship type being created or deleted