com.groiss.event
Class BasicEvent

java.lang.Object
  extended by com.groiss.event.BasicEvent
All Implemented Interfaces:
Event

public class BasicEvent
extends java.lang.Object
implements Event

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

name

protected java.lang.String name

raiser

protected ActivityInstance raiser

form

protected java.lang.Object form

raiseDate

protected java.util.Date raiseDate
Constructor Detail

BasicEvent

public BasicEvent(java.lang.String name,
                  ActivityInstance raiser,
                  java.lang.Object f)
Create an event.

Parameters:
name - the name of the event - must match the registration name
raiser - the activity instance which raised the event, may be null
f - context object: either a persistent or a string
Method Detail

getName

public java.lang.String getName()
Description copied from interface: Event
returns the name of the event

Specified by:
getName in interface Event

getRaiser

public ActivityInstance getRaiser()
Description copied from interface: Event
return the raiser of the event

Specified by:
getRaiser in interface Event

getContext

public java.lang.Object getContext()
Description copied from interface: Event
returns the context object

Specified by:
getContext in interface Event

getField

public java.lang.Object getField(java.lang.String fname)
                          throws java.lang.NoSuchFieldException,
                                 java.lang.IllegalAccessException
Description copied from interface: Event
This method return a field of the context object, useful if the context object is a form

Specified by:
getField in interface Event
Throws:
java.lang.NoSuchFieldException
java.lang.IllegalAccessException

getRaiseDate

public java.util.Date getRaiseDate()
Description copied from interface: Event
The date and time when the event has been raised.

Specified by:
getRaiseDate in interface Event


Copyright © 2001-2006 Groiss Informatics GmbH. All Rights Reserved.