com.vaadin.ui.components.grid.selection
Class SelectionChangeEvent
java.lang.Object
java.util.EventObject
com.vaadin.ui.components.grid.selection.SelectionChangeEvent
- All Implemented Interfaces:
- java.io.Serializable
public class SelectionChangeEvent
- extends java.util.EventObject
An event that specifies what in a selection has changed, and where the
selection took place.
- Since:
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
| Fields inherited from class java.util.EventObject |
source |
|
Constructor Summary |
SelectionChangeEvent(Grid source,
java.util.Collection<java.lang.Object> oldSelection,
java.util.Collection<java.lang.Object> newSelection)
|
|
Method Summary |
java.util.Set<java.lang.Object> |
getAdded()
A Collection of all the itemIds that became selected. |
java.util.Set<java.lang.Object> |
getRemoved()
A Collection of all the itemIds that became deselected. |
Grid |
getSource()
|
| Methods inherited from class java.util.EventObject |
toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SelectionChangeEvent
public SelectionChangeEvent(Grid source,
java.util.Collection<java.lang.Object> oldSelection,
java.util.Collection<java.lang.Object> newSelection)
getAdded
public java.util.Set<java.lang.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 java.util.Set<java.lang.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
getSource
public Grid getSource()
- Overrides:
getSource in class java.util.EventObject
Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.