com.vaadin.data.util
Class IndexedContainer.ItemSetChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.vaadin.data.util.AbstractContainer.BaseItemSetChangeEvent
          extended by com.vaadin.data.util.IndexedContainer.ItemSetChangeEvent
All Implemented Interfaces:
Container.ItemSetChangeEvent, Serializable
Enclosing class:
IndexedContainer

public static class IndexedContainer.ItemSetChangeEvent
extends AbstractContainer.BaseItemSetChangeEvent

An event object specifying the list whose Item set has changed.

Since:
3.0
Version:
7.0.0.alpha3
Author:
Vaadin Ltd.
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Method Summary
 int getAddedItemIndex()
          Iff one item is added, gives its index.
 
Methods inherited from class com.vaadin.data.util.AbstractContainer.BaseItemSetChangeEvent
getContainer
 
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
 

Method Detail

getAddedItemIndex

public int getAddedItemIndex()
Iff one item is added, gives its index.

Returns:
-1 if either multiple items are changed or some other change than add is done.


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