public static class DataGrid.SelectionEvent<E> extends DataGrid.AbstractDataGridEvent
| Constructor and Description |
|---|
SelectionEvent(DataGrid component,
java.util.List<E> added,
java.util.List<E> removed,
java.util.List<E> selected)
Constructor for a selection event.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<E> |
getAdded()
A
List of all the items that became selected. |
java.util.List<E> |
getRemoved()
A
List of all the items that became deselected. |
java.util.List<E> |
getSelected()
A
List of all the items that are currently selected. |
getSourcepublic SelectionEvent(DataGrid component, java.util.List<E> added, java.util.List<E> removed, java.util.List<E> selected)
component - the DataGrid from which this event originatesadded - items that became selectedremoved - items that became deselectedselected - items that are currently selectedpublic java.util.List<E> getAdded()
List of all the items that became selected.
Note: this excludes all items that might have been previously selected.
public java.util.List<E> getRemoved()
List of all the items that became deselected.
Note: this excludes all items that might have been previously deselected.
public java.util.List<E> getSelected()
List of all the items that are currently selected.