|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IKiemEventListener
Classes implementing this interface can listen to events happening anywhere in KIEM.
When an event successfully completes somewhere inside the KIEM plugin, the plugin may choose to notify the listeners of this event.
Method Summary | |
---|---|
void |
notifyEvent(KiemEvent event)
This is the basic notify method that is called by KIEM whenever an event occurs for which this EventListener is registered (see provideEventOfInterest() ). |
KiemEvent |
provideEventOfInterest()
Return a KiemEvent type (integer value) that represents a number of events this component wants to listen to. |
Method Detail |
---|
void notifyEvent(KiemEvent event)
provideEventOfInterest()
).
event
- the KiemEvent with additional attached information, depending
on the specific eventKiemEvent provideEventOfInterest()
Return a KiemEvent type (integer value) that represents a number of events this component wants to listen to.
A KiemEvent can be a combination of several events. The simplest way to register for two events that e.g., indicate a step-command and the removal of the component is to have the following code:
public KiemEvent provideEventOfInterest() {
int[] events = {CMD_STEP, DELETED}
return new KiemEvent(events);
}
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |