com.vaadin.event.
Class SelectionEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.event.SelectionEvent
-
All Implemented Interfaces:
public class SelectionEvent extends EventObject
An event that specifies what in a selection has changed, and where the selection took place.
Since:
7.4
Author:
Vaadin Ltd
See Also:
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static interface
SelectionEvent.SelectionListener
The listener interface for receiving
SelectionEvents
.static interface
SelectionEvent.SelectionNotifier
The interface for adding and removing listeners for
SelectionEvents
.
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor and Description SelectionEvent(Object source, Collection<Object> oldSelection, Collection<Object> newSelection)
-
Method Summary
All Methods Modifier and Type Method and Description Set<Object>
getAdded()
A
Collection
of all the itemIds that became selected.Set<Object>
getRemoved()
A
Collection
of all the itemIds that became deselected.Set<Object>
getSelected()
A
Collection
of all the itemIds that are currently selected.-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
SelectionEvent
public SelectionEvent(Object source, Collection<Object> oldSelection, Collection<Object> newSelection)
-
-
Method Detail
-
getAdded
public Set<Object> getAdded()
A
Collection
of all the itemIds that became selected.Note: this excludes all itemIds that might have been previously selected.
Returns:
a Collection of the itemIds that became selected
-
getRemoved
public Set<Object> getRemoved()
A
Collection
of all the itemIds that became deselected.Note: this excludes all itemIds that might have been previously deselected.
Returns:
a Collection of the itemIds that became deselected
-
getSelected
public Set<Object> getSelected()
A
Collection
of all the itemIds that are currently selected.Returns:
a Collection of the itemIds that are currently selected
-
-