| 
Elexis API documentation as of September 4 2011 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.elexis.actions.ElexisEvent
public final class ElexisEvent
A universal event object. Can optionally created with a priority Note: Note: this class has a natural ordering that is inconsistent with equals
| Field Summary | |
|---|---|
static int | 
EVENT_CREATE
The Object was newly created  | 
static int | 
EVENT_DELETE
The object is about to be deleted  | 
static int | 
EVENT_DESELECTED
All Objects of this type have been deselected  | 
static int | 
EVENT_MANDATOR_CHANGED
the mandator changed  | 
static int | 
EVENT_RELOAD
All Objects of this class have been reloaded  | 
static int | 
EVENT_SELECTED
The Object has been selected  | 
static int | 
EVENT_UPDATE
The object has changed some of its properties  | 
static int | 
EVENT_USER_CHANGED
a user logged out or logged in  | 
static int | 
PRIORITY_HIGH
 | 
static int | 
PRIORITY_LOW
 | 
static int | 
PRIORITY_NORMAL
 | 
| Constructor Summary | |
|---|---|
ElexisEvent(PersistentObject o,
            java.lang.Class<?> c,
            int type)
Create an ElexisEvent with default priority  | 
|
ElexisEvent(PersistentObject o,
            java.lang.Class<?> c,
            int type,
            int priority)
Create an ElexisEvent with explicitely set priority  | 
|
| Method Summary | |
|---|---|
 int | 
compareTo(ElexisEvent o)
 | 
static ElexisEvent | 
createPatientEvent()
Shortcut to create a "Patient changed" event  | 
static ElexisEvent | 
createUserEvent()
Shortcut to create a "User Changed" event  | 
 PersistentObject | 
getObject()
Retrieve the object this event is about.  | 
 java.lang.Class<?> | 
getObjectClass()
Retrieve the class this event is about  | 
 int | 
getType()
Retrieve the event type  | 
| Methods inherited from class java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final int EVENT_CREATE
public static final int EVENT_DELETE
public static final int EVENT_UPDATE
public static final int EVENT_RELOAD
public static final int EVENT_SELECTED
public static final int EVENT_DESELECTED
public static final int EVENT_USER_CHANGED
public static final int EVENT_MANDATOR_CHANGED
public static final int PRIORITY_HIGH
public static final int PRIORITY_NORMAL
public static final int PRIORITY_LOW
| Constructor Detail | 
|---|
public ElexisEvent(PersistentObject o,
                   java.lang.Class<?> c,
                   int type)
o - the PersistentObject that sources the eventc - The object classs of the event sourcetype - the type of Event. One of the EVENT_ constants
public ElexisEvent(PersistentObject o,
                   java.lang.Class<?> c,
                   int type,
                   int priority)
o - the PersistentObject that sources the eventc - The object classs of the event sourcetype - the type of Event. One of the EVENT_ constantspriority - the priority for this event. One of the PRIORITY_ Constants or any other int
            value. An Event will be fired before all other events with same or lower priority.| Method Detail | 
|---|
public PersistentObject getObject()
public java.lang.Class<?> getObjectClass()
public int getType()
public static ElexisEvent createUserEvent()
public static ElexisEvent createPatientEvent()
public int compareTo(ElexisEvent o)
compareTo in interface java.lang.Comparable<ElexisEvent>
  | 
Elexis API documentation as of September 4 2011 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||