public class SelectionEvent extends EventObject
| 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. |
source| Constructor and Description |
|---|
SelectionEvent(Object source,
Collection<Object> oldSelection,
Collection<Object> newSelection) |
| 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. |
getSource, toStringpublic SelectionEvent(Object source, Collection<Object> oldSelection, Collection<Object> newSelection)
public Set<Object> getAdded()
Collection of all the itemIds that became selected.
Note: this excludes all itemIds that might have been previously selected.
public Set<Object> getRemoved()
Collection of all the itemIds that became deselected.
Note: this excludes all itemIds that might have been previously deselected.
public Set<Object> getSelected()
Collection of all the itemIds that are currently selected.Copyright © 2017 Vaadin Ltd. All rights reserved.