SalesPoint Framework v3.0

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

Fields inherited from class data.DataBasket
DEFAULTSUBBASKET_NAME, LOG_MODE_ALL, LOG_MODE_COMMITS_ONLY, LOG_MODE_NONE, LOG_MODE_ROLLBACKS_ONLY
 
Method Summary
 void addDataBasketListener(DataBasketListener dbl)
          Add a listener that will be informed about changes to the DataBasket's contents.
 void fireDataBasketChanged()
          Fire an event to inform listeners about some unspecific change to the DataBasket's contents.
 void removeDataBasketListener(DataBasketListener dbl)
          Remove a listener that was being informed about changes to the DataBasket's contents.
 
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
 

Method Detail

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.

SalesPoint Framework v3.0