org.netbeans.modules.bpel.model.api.events
Class ChangeEventListenerAdapter

java.lang.Object
  extended by org.netbeans.modules.bpel.model.api.events.ChangeEventListenerAdapter
All Implemented Interfaces:
java.util.EventListener, ChangeEventListener

public class ChangeEventListenerAdapter
extends java.lang.Object
implements ChangeEventListener

This is adapter class. One may override methods that needed. All other methods delegates call to notifyEvent that don't have any implementation. If one don't want to distinguish events he may just override notifyEvent. Either he can override some of public methods and don't override notifyEvent.

Author:
ads

Constructor Summary
ChangeEventListenerAdapter()
           
 
Method Summary
 void notifyArrayUpdated(ArrayUpdateEvent event)
          Method is called when array of children was updated.
 void notifyEntityInserted(EntityInsertEvent event)
          Method is called when new entity was inserted ( may be in some position ) in OM.
 void notifyEntityRemoved(EntityRemoveEvent event)
          Method is called when entity was removed from OM.
 void notifyEntityUpdated(EntityUpdateEvent event)
          Method is called when entity was updated.
protected  void notifyEvent(ChangeEvent event)
          This is method that is used for delegation from each listener methods.
 void notifyPropertyRemoved(PropertyRemoveEvent event)
          Method is called when attribute is removed.
 void notifyPropertyUpdated(PropertyUpdateEvent event)
          Method is called when attribute is updated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeEventListenerAdapter

public ChangeEventListenerAdapter()
Method Detail

notifyPropertyRemoved

public void notifyPropertyRemoved(PropertyRemoveEvent event)
Method is called when attribute is removed.

Specified by:
notifyPropertyRemoved in interface ChangeEventListener
Parameters:
event - Notificitaion event.

notifyEntityInserted

public void notifyEntityInserted(EntityInsertEvent event)
Method is called when new entity was inserted ( may be in some position ) in OM.

Specified by:
notifyEntityInserted in interface ChangeEventListener
Parameters:
event - Notificitaion event

notifyPropertyUpdated

public void notifyPropertyUpdated(PropertyUpdateEvent event)
Method is called when attribute is updated.

Specified by:
notifyPropertyUpdated in interface ChangeEventListener
Parameters:
event - Notificitaion event

notifyEntityRemoved

public void notifyEntityRemoved(EntityRemoveEvent event)
Method is called when entity was removed from OM.

Specified by:
notifyEntityRemoved in interface ChangeEventListener
Parameters:
event - Notificitaion event

notifyEntityUpdated

public void notifyEntityUpdated(EntityUpdateEvent event)
Method is called when entity was updated.

Specified by:
notifyEntityUpdated in interface ChangeEventListener
Parameters:
event - Notificitaion event

notifyArrayUpdated

public void notifyArrayUpdated(ArrayUpdateEvent event)
Method is called when array of children was updated.

Specified by:
notifyArrayUpdated in interface ChangeEventListener
Parameters:
event - Notificitaion event

notifyEvent

protected void notifyEvent(ChangeEvent event)
This is method that is used for delegation from each listener methods.

Parameters:
event - notification event.