diff options
-rw-r--r-- | src/com/vaadin/event/EventRouter.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/vaadin/event/EventRouter.java b/src/com/vaadin/event/EventRouter.java index 69d98db276..dc4f67bf65 100644 --- a/src/com/vaadin/event/EventRouter.java +++ b/src/com/vaadin/event/EventRouter.java @@ -153,6 +153,14 @@ public class EventRouter implements MethodEventSource { } } + /** + * Checks if the given Event type is listened by a listener registered to + * this router. + * + * @param eventType + * the event type to be checked + * @return true if a listener is registered for the given event type + */ public boolean hasListeners(Class<?> eventType) { if (listenerList != null) { for (ListenerMethod lm : listenerList) { |