SalesPoint v3.3 API

data
Interface ListenableStock<T extends StockItem,CT extends CatalogItem>

All Superinterfaces:
Cloneable, Comparable<Object>, DataBasketEntryDestination, DataBasketEntrySource, Nameable, Serializable, Stock<T,CT>, StockItem
All Known Implementing Classes:
AbstractStockFilter, CountingStockFilter, CountingStockImpl, MoneyBagFilter, MoneyBagImpl, StockImpl, StoringStockFilter, StoringStockImpl

public interface ListenableStock<T extends StockItem,CT extends CatalogItem>
extends Stock<T,CT>

A Stock that will fire events to inform about changes to its contents.

Since:
v2.0
Author:
Steffen Zschaler

Field Summary
 
Fields inherited from interface data.Nameable
NAME_PROPERTY
 
Method Summary
 void addStockChangeListener(StockChangeListener scl)
          Add a listener that will be informed about changes to the Stock's contents.
 void removeStockChangeListener(StockChangeListener scl)
          Remove a listener that was being informed about changes to the Stock's contents.
 
Methods inherited from interface data.Stock
add, addStock, contains, contains, containsStock, countItems, fillStockWithValue, get, getCatalog, iterator, keySet, remove, remove, size, sumStock
 
Methods inherited from interface data.StockItem
clone, getAssociatedItem, getStock
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface data.Nameable
addNameListener, addPropertyChangeListener, attach, detachNC, getName, removeNameListener, removePropertyChangeListener, setName
 

Method Detail

addStockChangeListener

void addStockChangeListener(StockChangeListener scl)
Add a listener that will be informed about changes to the Stock's contents.

Parameters:
scl - the listener
Override:
Always

removeStockChangeListener

void removeStockChangeListener(StockChangeListener scl)
Remove a listener that was being informed about changes to the Stock's contents.

Parameters:
scl - the listener
Override:
Always

SalesPoint v3.3 API