edu.indiana.iucbrf.casebase.event
Class CaseBaseEvent

java.lang.Object
  extended by java.util.EventObject
      extended by edu.indiana.iucbrf.casebase.event.CaseBaseEvent
All Implemented Interfaces:
java.io.Serializable

public class CaseBaseEvent
extends java.util.EventObject

A CaseBaseEvent indicates a change to a CaseBase. The meanings of case1 and case2 depend on what method the CaseBaseEvent is sent to, as follows:
caseAdded(): case1 is the case added, case2 is CASE_NOT_APPLICABLE
caseRemoved(): case1 is the case removed, case2 is CASE_NOT_APPLICABLE
caseReplaced(): case1 is the old case, case2 is the new case
casesCleared(): case1 is CASE_NOT_APPLICABLE, case2 is CASE_NOT_APPLICABLE
caseClassChanged(): case1 is CASE_NOT_APPLICABLE, case2 is CASE_NOT_APPLICABLE

See Also:
Serialized Form

Field Summary
static Case CASE_NOT_APPLICABLE
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CaseBaseEvent(CaseBase cb)
           
CaseBaseEvent(CaseBase cb, Case case1)
           
CaseBaseEvent(CaseBase cb, Case case1, Case case2)
           
 
Method Summary
 Case getCase()
           
 Case getCase2()
           
 CaseBase getCaseBase()
          Get the case base on which this event occurred.
 java.lang.String toString()
          Get a String representation of this CaseBaseEvent
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CASE_NOT_APPLICABLE

public static final Case CASE_NOT_APPLICABLE
Constructor Detail

CaseBaseEvent

public CaseBaseEvent(CaseBase cb)

CaseBaseEvent

public CaseBaseEvent(CaseBase cb,
                     Case case1)

CaseBaseEvent

public CaseBaseEvent(CaseBase cb,
                     Case case1,
                     Case case2)
Method Detail

getCaseBase

public CaseBase getCaseBase()
Get the case base on which this event occurred.


getCase

public Case getCase()

getCase2

public Case getCase2()

toString

public java.lang.String toString()
Get a String representation of this CaseBaseEvent

Overrides:
toString in class java.util.EventObject