com.vaadin.data.util
Class IndexedContainer.ItemSetChangeEvent

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

public class IndexedContainer.ItemSetChangeEvent
extends EventObject
implements Container.ItemSetChangeEvent, Serializable

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

Since:
3.0
Version:
6.3.3
Author:
IT Mill 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.
 Container getContainer()
          Gets the Property where the event occurred.
 
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

getContainer

public Container getContainer()
Description copied from interface: Container.ItemSetChangeEvent
Gets the Property where the event occurred.

Specified by:
getContainer in interface Container.ItemSetChangeEvent
Returns:
source of the event

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-2010 IT Mill Ltd. All Rights Reserved.