SalesPoint v3.3 API

data
Interface ListenableDataBasket

All Superinterfaces:
DataBasket, Serializable
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
Author:
Steffen Zschaler

Field Summary
 
Fields inherited from interface 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

void addDataBasketListener(DataBasketListener dbl)
Add a listener that will be informed about changes to the DataBasket's contents.

Parameters:
dbl - the listener.
Override:
Always

removeDataBasketListener

void removeDataBasketListener(DataBasketListener dbl)
Remove a listener that was being informed about changes to the DataBasket's contents.

Parameters:
dbl - the listener.
Override:
Always

fireDataBasketChanged

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

SalesPoint v3.3 API