diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-01-07 16:32:36 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2015-01-08 09:12:20 +0000 |
commit | 864c5c70dc96a4d79985eb3b4fadb952d320f928 (patch) | |
tree | 78f7cf94fdff6655ced943187163c1e0966a8330 /server/src/com/vaadin/event | |
parent | 50dac79cb624931a661ce4d4b59458f9f5e0c524 (diff) | |
download | vaadin-framework-864c5c70dc96a4d79985eb3b4fadb952d320f928.tar.gz vaadin-framework-864c5c70dc96a4d79985eb3b4fadb952d320f928.zip |
Add getSelected functionality to SelectionEvents (#15513)
Change-Id: If88af88b55063f7178b32579963303ee0d621492
Diffstat (limited to 'server/src/com/vaadin/event')
-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}. */ |