Package com.vaadin.event
Class SelectionEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.event.SelectionEvent
-
- All Implemented Interfaces:
Serializable
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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSelectionEvent.SelectionListenerThe listener interface for receivingSelectionEvents.static interfaceSelectionEvent.SelectionNotifierThe interface for adding and removing listeners forSelectionEvents.
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description SelectionEvent(Object source, Collection<Object> oldSelection, Collection<Object> newSelection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<Object>getAdded()ACollectionof all the itemIds that became selected.Set<Object>getRemoved()ACollectionof all the itemIds that became deselected.Set<Object>getSelected()ACollectionof 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()
ACollectionof 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()
ACollectionof 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()
ACollectionof all the itemIds that are currently selected.- Returns:
- a Collection of the itemIds that are currently selected
-
-