de.janrufmonitor.framework.event
Interface IEvent


public interface IEvent

This interface must be implemented by a event object. Events are fired and catched by the framework and can be handled by EventReceivers and EventSender.

Author:
Thilo Brandt

Method Summary
 IEventCondition getConditions()
          Gets the condition of the event.
 Object getData()
          Gets the event data, e.g., a caller or a call
 int getType()
          Gets the type of the event.
 void setConditions(IEventCondition cond)
          Sets a condition for this event.
 void setData(Object obj)
          Sets the data for this event, e.g., a caller or a call object.
 void setType(int type)
          Sets the type of the event.
 

Method Detail

getType

int getType()
Gets the type of the event.

Returns:
type of the event

getConditions

IEventCondition getConditions()
Gets the condition of the event.

Returns:
condition of the event.

getData

Object getData()
Gets the event data, e.g., a caller or a call

Returns:
event data

setType

void setType(int type)
Sets the type of the event.

Parameters:
type - type of the event

setConditions

void setConditions(IEventCondition cond)
Sets a condition for this event.

Parameters:
cond - condition for this event

setData

void setData(Object obj)
Sets the data for this event, e.g., a caller or a call object.

Parameters:
obj - data of the event


Copyright © 2010 by Thilo Brandt. All Rights Reserved.