com.sun.data.provider
Class DataAdapter

java.lang.Object
  extended bycom.sun.data.provider.DataAdapter
All Implemented Interfaces:
DataListener, java.util.EventListener
Direct Known Subclasses:
RefreshableDataAdapter, TableDataAdapter, TransactionalDataAdapter

public class DataAdapter
extends java.lang.Object
implements DataListener

DataAdapter is an event listener adapter that provides a base implementation of DataListener.

Author:
Joe Nuxoll

Constructor Summary
DataAdapter()
           
 
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.

 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataAdapter

public DataAdapter()
Method Detail

valueChanged

public 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.

Specified by:
valueChanged in interface DataListener
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

public void providerChanged(DataProvider provider)

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

Specified by:
providerChanged in interface DataListener
Parameters:
provider - The DataProvider that has changed