|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LensEventService
Singleton which is responsible for managing the event-listener mapping as well as processing events.
Field Summary | |
---|---|
static String |
NAME
The Constant NAME. |
Method Summary | ||
---|---|---|
|
addListenerForType(LensEventListener<? super T> listener,
Class<T> eventType)
Add a listener for the given event type. |
|
|
getListeners(Class<T> changeType)
Get all listeners of a particular type. |
|
void |
notifyEvent(LensEvent event)
Process an event, and notify all listeners interested in this event. |
|
|
removeListener(LensEventListener<? super T> listener)
Remove this listener instance from all subscribed event types. |
|
|
removeListenerForType(LensEventListener<? super T> listener,
Class<T> eventType)
Remove listener for a given event type. |
Field Detail |
---|
static final String NAME
Method Detail |
---|
<T extends LensEvent> void addListenerForType(LensEventListener<? super T> listener, Class<T> eventType)
listener
- the listenereventType
- the event type<T extends LensEvent> void removeListenerForType(LensEventListener<? super T> listener, Class<T> eventType)
listener
- the listenereventType
- the event type<T extends LensEvent> void removeListener(LensEventListener<? super T> listener)
listener
- the listenervoid notifyEvent(LensEvent event) throws LensException
event
- object
LensException
- the lens exception<T extends LensEvent> Collection<LensEventListener> getListeners(Class<T> changeType)
changeType
- the change type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |