|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Role public interface EventListener
Components wanting to receive Observation events
must implement this interface.
Method Summary | |
---|---|
List<Event> |
getEvents()
|
String |
getName()
|
void |
onEvent(Event event,
Object source,
Object data)
The ObservationManager calls this method when an event matches one of the events
for which this listener is registered (see getEvents() . |
Method Detail |
---|
String getName()
ObservationManager
.List<Event> getEvents()
ObservationManager
. When an event occurs,
for each matching event in this list, the onEvent(Event, Object, Object)
method will be
called.void onEvent(Event event, Object source, Object data)
ObservationManager
calls this method when an event matches one of the events
for which this listener is registered (see getEvents()
.
event
- the event triggered. Can be used to differentiate different events if your Object supports several
events for example.source
- the event source i.e. the object for which the event was triggered. For example this would be the
document Object if the event is a document update event.data
- some additional and optional data passed that can be acted on.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |