data
Interface ListenableDataBasket
- All Known Implementing Classes:
- DataBasketImpl
- public interface ListenableDataBasket
- extends DataBasket
A DataBasket that will fire events to inform about changes to its contents.
- Since:
- v2.0
- Version:
- 2.0 18/08/1999
- Author:
- Steffen Zschaler
Methods inherited from interface data.DataBasket |
commit,
commit,
commitCurrentSubBasket,
commitSubBasket,
contains,
exchange,
get,
getLogMode,
iterator,
put,
rollback,
rollback,
rollbackCurrentSubBasket,
rollbackSubBasket,
setCurrentSubBasket,
setLogContext,
setLogMode,
subBasketIterator,
sumBasket,
sumCurrentSubBasket,
sumSubBasket |
addDataBasketListener
public void addDataBasketListener(DataBasketListener dbl)
- Add a listener that will be informed about changes to the DataBasket's contents.
- Override:
- Always.
- Parameters:
dbl
- the listener.
removeDataBasketListener
public void removeDataBasketListener(DataBasketListener dbl)
- Remove a listener that was being informed about changes to the DataBasket's contents.
- Override:
- Always.
- Parameters:
dbl
- the listener.
fireDataBasketChanged
public void fireDataBasketChanged()
- Fire an event to inform listeners about some unspecific change to the DataBasket's contents.
This method is necessary as there may be changes that are made without calling methods in the
DataBasket. In such cases a call to this method will be necessary to keep the listeners informed.
- Override:
- Always.
- Parameters:
dbl
- the listener.