data.events
Class DataBasketAdapter
java.lang.Object
|
+--data.events.DataBasketAdapter
- public abstract class DataBasketAdapter
- extends Object
- implements DataBasketListener
An abstract adapter class for receiving data basket change events. The methods in this class are
empty. This class exists as convenience for creating listener objects.
Extend this class to create a DataBasketEvent listener and override the methods for the events of
interest. (If you implement the DataBasketListener interface, you have to define all of the methods in
it. This abstract class defines empty method bodies for them all, so you can concentrate on defining
methods only for events you care about.)
Create a listener object using the extended class and then register it with a ListenableDataBasket using
the DataBasket's ListenableDataBasket.addDataBasketListener(data.events.DataBasketListener)
method. When the DataBasket's
contents change, the relevant method in the listener object is invoked, and a DataBasketEvent
is
passed to it.
- Since:
- v2.0
- Version:
- 2.0 19/08/1999
- Author:
- Steffen Zschaler
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
DataBasketAdapter
public DataBasketAdapter()
addedDBE
public void addedDBE(DataBasketEvent e)
- Called when a DataBasketEntry was added to the DataBasket.
- Override:
- Sometimes.
- Specified by:
- addedDBE in interface DataBasketListener
- Parameters:
e
- an event object that describes the event.
removedDBE
public void removedDBE(DataBasketEvent e)
- Called when a DataBasketEntry was removed from the DataBasket.
- Override:
- Sometimes.
- Specified by:
- removedDBE in interface DataBasketListener
- Parameters:
e
- an event object that describes the event.
dataBasketChanged
public void dataBasketChanged(DataBasketEvent e)
- Called when the DataBasket changed in a manner too complex for the two other types of events.
- Override:
- Sometimes.
- Specified by:
- dataBasketChanged in interface DataBasketListener
- Parameters:
e
- an event object that describes the event. (e.getAffectedEntry() == null
!)