diff options
Diffstat (limited to 'src/com/vaadin/ui/AbstractSelect.java')
-rw-r--r-- | src/com/vaadin/ui/AbstractSelect.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/com/vaadin/ui/AbstractSelect.java b/src/com/vaadin/ui/AbstractSelect.java index ab17498f7f..66ec7b0980 100644 --- a/src/com/vaadin/ui/AbstractSelect.java +++ b/src/com/vaadin/ui/AbstractSelect.java @@ -1454,6 +1454,26 @@ public abstract class AbstractSelect extends AbstractField implements } } + @Override + public Collection<?> getListeners(Class<?> eventType) { + if (Container.ItemSetChangeEvent.class.isAssignableFrom(eventType)) { + if (itemSetEventListeners == null) + return Collections.EMPTY_LIST; + else + return Collections + .unmodifiableCollection(itemSetEventListeners); + } else if (Container.PropertySetChangeEvent.class + .isAssignableFrom(eventType)) { + if (propertySetEventListeners == null) + return Collections.EMPTY_LIST; + else + return Collections + .unmodifiableCollection(propertySetEventListeners); + } + + return super.getListeners(eventType); + } + /** * Lets the listener know a Containers Item set has changed. * |