org.eclipse.jpt.utility.model.listener
Class CollectionChangeAdapter

java.lang.Object
  extended by org.eclipse.jpt.utility.model.listener.CollectionChangeAdapter
All Implemented Interfaces:
java.util.EventListener, ChangeListener, CollectionChangeListener

public class CollectionChangeAdapter
extends java.lang.Object
implements CollectionChangeListener

Convenience implementation of CollectionChangeListener. Provisional API: This class is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.


Constructor Summary
CollectionChangeAdapter()
          Default constructor.
 
Method Summary
 void collectionChanged(CollectionChangeEvent event)
          This method gets called when a bound collection is changed in a manner that is not easily characterized by the other methods in this interface.
 void collectionCleared(CollectionChangeEvent event)
          This method gets called when a bound collection is cleared.
 void itemsAdded(CollectionChangeEvent event)
          This method gets called when items are added to a bound collection.
 void itemsRemoved(CollectionChangeEvent event)
          This method gets called when items are removed from a bound collection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionChangeAdapter

public CollectionChangeAdapter()
Default constructor.

Method Detail

itemsAdded

public void itemsAdded(CollectionChangeEvent event)
Description copied from interface: CollectionChangeListener
This method gets called when items are added to a bound collection.

Specified by:
itemsAdded in interface CollectionChangeListener
Parameters:
event - A CollectionChangeEvent describing the event source, the collection that changed, and the items that were added.

itemsRemoved

public void itemsRemoved(CollectionChangeEvent event)
Description copied from interface: CollectionChangeListener
This method gets called when items are removed from a bound collection.

Specified by:
itemsRemoved in interface CollectionChangeListener
Parameters:
event - A CollectionChangeEvent describing the event source, the collection that changed, and the items that were removed.

collectionCleared

public void collectionCleared(CollectionChangeEvent event)
Description copied from interface: CollectionChangeListener
This method gets called when a bound collection is cleared.

Specified by:
collectionCleared in interface CollectionChangeListener
Parameters:
event - A CollectionChangeEvent describing the event source and the collection that changed.

collectionChanged

public void collectionChanged(CollectionChangeEvent event)
Description copied from interface: CollectionChangeListener
This method gets called when a bound collection is changed in a manner that is not easily characterized by the other methods in this interface.

Specified by:
collectionChanged in interface CollectionChangeListener
Parameters:
event - A CollectionChangeEvent describing the event source and the collection that changed.