com.ibm.commons.iloader.node
Class DataChangeNotifier

java.lang.Object
  extended by com.ibm.commons.iloader.node.DataChangeNotifier

public class DataChangeNotifier
extends java.lang.Object

A notifier object that is responsible for notifying listeners when the DataNode changes.


Constructor Summary
DataChangeNotifier()
           
 
Method Summary
 void addDataChangeListener(DataChangeListener listener)
          Adds a client as a listener.
 void notifyItemInserted(java.lang.Object object, IMember member, int position, DataChangeListener exclude)
          Notifies all listeners that an item was added to the collection (com.ibm.commons.iloader.node.DataChangeListener.ITEM_INSERTED).
 void notifyItemRemoved(java.lang.Object object, IMember member, int position, DataChangeListener exclude)
          Notifies all listeners that an item was removed from the collection (com.ibm.commons.iloader.node.DataChangeListener.ITEM_REMOVED).
 void notifyValueChanged(java.lang.Object object, IMember member, int position, DataChangeListener exclude)
          Notifies all listeners of a value changed event (com.ibm.commons.iloader.node.DataChangeListener.VALUE_CHANGED).
 void removeDataChangeListener(DataChangeListener listener)
          Removes a client as a listener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataChangeNotifier

public DataChangeNotifier()
Method Detail

notifyValueChanged

public void notifyValueChanged(java.lang.Object object,
                               IMember member,
                               int position,
                               DataChangeListener exclude)
Notifies all listeners of a value changed event (com.ibm.commons.iloader.node.DataChangeListener.VALUE_CHANGED).

Parameters:
object - the element that changed
member - the property that changed
position - the position of the property that changed
exclude - a DataChangeListener that is not to be notified of the change

notifyItemInserted

public void notifyItemInserted(java.lang.Object object,
                               IMember member,
                               int position,
                               DataChangeListener exclude)
Notifies all listeners that an item was added to the collection (com.ibm.commons.iloader.node.DataChangeListener.ITEM_INSERTED).

Parameters:
object - the element that changed
member - the property that changed
position - the position of the property that changed
exclude - a DataChangeListener that is not to be notified of the change

notifyItemRemoved

public void notifyItemRemoved(java.lang.Object object,
                              IMember member,
                              int position,
                              DataChangeListener exclude)
Notifies all listeners that an item was removed from the collection (com.ibm.commons.iloader.node.DataChangeListener.ITEM_REMOVED).

Parameters:
object - the element that changed
member - the property that changed
position - the position of the property that changed
exclude - a DataChangeListener that is not to be notified of the change

addDataChangeListener

public void addDataChangeListener(DataChangeListener listener)
Adds a client as a listener.

Parameters:
listener -

removeDataChangeListener

public void removeDataChangeListener(DataChangeListener listener)
Removes a client as a listener

Parameters:
listener -