com.vaadin.event
Class SelectionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.vaadin.event.SelectionEvent
All Implemented Interfaces:
java.io.Serializable

public class SelectionEvent
extends java.util.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
static interface SelectionEvent.SelectionListener
          The listener interface for receiving SelectionEvents.
static interface SelectionEvent.SelectionNotifier
          The interface for adding and removing listeners for SelectionEvents.
 
Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SelectionEvent(java.lang.Object 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.
 java.util.Set<java.lang.Object> getSelected()
          A Collection of all the itemIds that are currently selected.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SelectionEvent

public SelectionEvent(java.lang.Object source,
                      java.util.Collection<java.lang.Object> oldSelection,
                      java.util.Collection<java.lang.Object> newSelection)
Method Detail

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

getSelected

public java.util.Set<java.lang.Object> getSelected()
A Collection of all the itemIds that are currently selected.

Returns:
a Collection of the itemIds that are currently selected


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.