|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groiss.event.BasicEvent
public class BasicEvent
Implementation of the Event class.
| Field Summary | |
|---|---|
protected java.lang.Object |
form
|
protected java.lang.String |
name
|
protected java.util.Date |
raiseDate
|
protected ActivityInstance |
raiser
|
| Constructor Summary | |
|---|---|
BasicEvent(java.lang.String name,
ActivityInstance raiser,
java.lang.Object f)
Create an event. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getContext()
returns the context object |
java.lang.Object |
getField(java.lang.String fname)
This method return a field of the context object, useful if the context object is a form |
java.lang.String |
getName()
returns the name of the event |
java.util.Date |
getRaiseDate()
The date and time when the event has been raised. |
ActivityInstance |
getRaiser()
return the raiser of the event |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String name
protected ActivityInstance raiser
protected java.lang.Object form
protected java.util.Date raiseDate
| Constructor Detail |
|---|
public BasicEvent(java.lang.String name,
ActivityInstance raiser,
java.lang.Object f)
name - the name of the event - must match the registration nameraiser - the activity instance which raised the event, may be nullf - context object: either a persistent or a string| Method Detail |
|---|
public java.lang.String getName()
Event
getName in interface Eventpublic ActivityInstance getRaiser()
Event
getRaiser in interface Eventpublic java.lang.Object getContext()
Event
getContext in interface Event
public java.lang.Object getField(java.lang.String fname)
throws java.lang.NoSuchFieldException,
java.lang.IllegalAccessException
Event
getField in interface Eventjava.lang.NoSuchFieldException
java.lang.IllegalAccessExceptionpublic java.util.Date getRaiseDate()
Event
getRaiseDate in interface Event
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||