Package com.vaadin.featurepack.event
Class SelectionEvent
java.lang.Object
java.util.EventObject
com.vaadin.featurepack.event.SelectionEvent
- All Implemented Interfaces:
Serializable
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 ClassesModifier and TypeClassDescriptionstatic interfaceThe listener interface for receivingSelectionEvents.static interfaceThe interface for adding and removing listeners forSelectionEvents. -
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionSelectionEvent(Object source, Collection<Object> oldSelection, Collection<Object> newSelection) -
Method Summary
Modifier and TypeMethodDescriptiongetAdded()ACollectionof all the itemIds that became selected.ACollectionof all the itemIds that became deselected.ACollectionof all the itemIds that are currently selected.Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
SelectionEvent
public SelectionEvent(Object source, Collection<Object> oldSelection, Collection<Object> newSelection)
-
-
Method Details
-
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
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
ACollectionof all the itemIds that are currently selected.- Returns:
- a Collection of the itemIds that are currently selected
-