diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/src/com/vaadin/event/SelectionEvent.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/server/src/com/vaadin/event/SelectionEvent.java b/server/src/com/vaadin/event/SelectionEvent.java index b6ade2aa9c..e75369e6da 100644 --- a/server/src/com/vaadin/event/SelectionEvent.java +++ b/server/src/com/vaadin/event/SelectionEvent.java @@ -17,6 +17,7 @@ package com.vaadin.event; import java.io.Serializable; import java.util.Collection; +import java.util.Collections; import java.util.EventObject; import java.util.LinkedHashSet; import java.util.Set; @@ -67,6 +68,15 @@ public class SelectionEvent extends EventObject { } /** + * A {@link Collection} of all the itemIds that are currently selected. + * + * @return a Collection of the itemIds that are currently selected + */ + public Set<Object> getSelected() { + return Collections.unmodifiableSet(newSelection); + } + + /** * The listener interface for receiving {@link SelectionEvent * SelectionEvents}. */ |