com.groiss.event
Interface Event

All Known Implementing Classes:
BasicEvent

public interface Event

Interface for creating event classes.


Method Summary
 void afterDispatch()
          callback method which will be called after the event has successfully been dispatched
 Object getContext()
          returns the context object
 Object getField(String name)
          This method return a field of the context object, useful if the context object is a form
 String getName()
          returns the name of the event
 Date getRaiseDate()
          The date and time when the event has been raised.
 ActivityInstance getRaiser()
          return the raiser of the event
 int getTxType()
          get the transaction-type.
 boolean isAbort()
          can be used to notify the event-handler of an illegal state
 void onNotDispatched()
          callback method which will be called if the event couldn't be dispatched
 

Method Detail

getName

String getName()
returns the name of the event


getRaiser

ActivityInstance getRaiser()
return the raiser of the event


getContext

Object getContext()
returns the context object


getField

Object getField(String name)
                throws NoSuchFieldException,
                       IllegalAccessException
This method return a field of the context object, useful if the context object is a form

Throws:
NoSuchFieldException
IllegalAccessException

getRaiseDate

Date getRaiseDate()
The date and time when the event has been raised.


afterDispatch

void afterDispatch()
callback method which will be called after the event has successfully been dispatched


onNotDispatched

void onNotDispatched()
callback method which will be called if the event couldn't be dispatched


getTxType

int getTxType()
get the transaction-type. At the moment, CURRENT_TX is the only supported type.

Returns:
the transaction-type
See Also:
EventManager.CURRENT_TX, EventManager.NEW_TX

isAbort

boolean isAbort()
can be used to notify the event-handler of an illegal state



@enterprise 8.0.10078 Copyright © 2001-2011 Groiss Informatics GmbH. All Rights Reserved.