edu.indiana.iucbrf.casebase.event
Class CaseBaseEvent
java.lang.Object
java.util.EventObject
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
Fields inherited from class java.util.EventObject |
source |
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 |
CASE_NOT_APPLICABLE
public static final Case CASE_NOT_APPLICABLE
CaseBaseEvent
public CaseBaseEvent(CaseBase cb)
CaseBaseEvent
public CaseBaseEvent(CaseBase cb,
Case case1)
CaseBaseEvent
public CaseBaseEvent(CaseBase cb,
Case case1,
Case case2)
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