com.sun.data.provider
Interface DataListener

All Superinterfaces:
java.util.EventListener
All Known Subinterfaces:
RefreshableDataListener, TableDataListener, TransactionalDataListener
All Known Implementing Classes:
DataAdapter, RefreshableDataAdapter, TableDataAdapter, TransactionalDataAdapter

public interface DataListener
extends java.util.EventListener

DataListener is an event listener interface that supports processing events produced by a corresponding DataProvider instance. Specialized subinterfaces of this interface add support for events produced by corresponding specialised DataProvider instances that implement specialized subinterfaces of that API.


Method Summary
 void providerChanged(DataProvider provider)
          Process an event indicating that the DataProvider has changed in a way outside the bounds of the other event methods.
 void valueChanged(DataProvider provider, FieldKey fieldKey, java.lang.Object oldValue, java.lang.Object newValue)
          Process an event indicating that a data element's value has been changed.
 

Method Detail

valueChanged

void valueChanged(DataProvider provider,
                  FieldKey fieldKey,
                  java.lang.Object oldValue,
                  java.lang.Object newValue)

Process an event indicating that a data element's value has been changed.

Parameters:
provider - DataProvider containing the data element that has had a value change
fieldKey - FieldKey representing the specific data element that has had a value change
oldValue - The old value of this data element
newValue - The new value of this data element

providerChanged

void providerChanged(DataProvider provider)

Process an event indicating that the DataProvider has changed in a way outside the bounds of the other event methods.

Parameters:
provider - The DataProvider that has changed