Interface Event

All Known Implementing Classes:
BasicEvent

public interface Event
Interface for creating event classes.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    callback method which will be called after the event has successfully been dispatched
    returns the context object
    This method return a field of the context object, useful if the context object is a form
    returns the name of the event
    The date and time when the event has been raised.
    return the raiser of the event
    int
    get the transaction-type.
    boolean
    can be used to notify the event-handler of an illegal state
    void
    callback method which will be called if the event couldn't be dispatched
  • Method Details

    • 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

      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:
    • isAbort

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