data
Interface ListenableStock
- All Superinterfaces:
- Cloneable, Comparable, DataBasketEntryDestination, DataBasketEntrySource, Nameable, Serializable, Stock, StockItem
- All Known Implementing Classes:
- AbstractStockFilter, StockImpl
- public interface ListenableStock
- extends Stock
A Stock that will fire events to inform about changes to its contents.
- Since:
- v2.0
- Author:
- Steffen Zschaler
Methods inherited from interface data.Stock |
add, addStock, contains, contains, containsStock, countItems, fillStockWithValue, get, getCatalog, iterator, keySet, remove, remove, size, sumStock |
addStockChangeListener
public 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
public void removeStockChangeListener(StockChangeListener scl)
- Remove a listener that was being informed about changes to the Stock's contents.
- Parameters:
scl
- the listener- Override:
- Always