|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- type of the data notified by the event.public interface Event<T>
Event mechanism like in C#.
It provides functionality to subscribe and unsubscribe from the event.
For example see EventImpl
.
Method Summary | |
---|---|
void |
subscribe(EventHandler<T> eventHandler)
Subscribes client to for the event. |
void |
unsubscribe(EventHandler<T> eventHandler)
Unsubscribes client from the event. |
Method Detail |
---|
void subscribe(EventHandler<T> eventHandler)
eventHandler
- Event handler provided by the client.void unsubscribe(EventHandler<T> eventHandler)
eventHandler
- Event handler that should be unsubscribed from the event.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |