|
SalesPoint Framework v3.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--data.filters.AbstractStockFilter | +--data.filters.CountingStockFilter
StockFilter for CountingStocks.
The filter condition will be defined by overriding method countItems(java.lang.String, data.DataBasket)
.
Fields inherited from class data.filters.AbstractStockFilter |
m_lhListeners,
m_stSource |
Constructor Summary | |
CountingStockFilter(CountingStock csSource)
Create a new CountingStockFilter. |
Method Summary | |
void |
add(String sKey,
int nCount,
DataBasket db)
Add the specified number of items to the source Stock. |
boolean |
contains(StockItem si,
DataBasket db)
Check whether the filtered Stock contains the given StockItem. |
boolean |
containsStock(Stock st,
DataBasket db)
Check whether the filtered Stock contains the given Stock. |
abstract int |
countItems(String sKey,
DataBasket db)
Count the items of the given key in the filtered Stock. |
Iterator |
get(String sKey,
DataBasket db,
boolean fForEdit)
Return all items with the given key that are contained in the filtered Stock. |
void |
remove(String sKey,
int nCount,
DataBasket db)
Remove at most the specified number of items from the source Stock. |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public CountingStockFilter(CountingStock csSource)
csSource
- the source Stock.Method Detail |
public Iterator get(String sKey, DataBasket db, boolean fForEdit)
public abstract int countItems(String sKey, DataBasket db)
This method must be overridden, as it represents the filter condition. All other methods that use or return filtered values will call this method.
public boolean contains(StockItem si, DataBasket db)
public boolean containsStock(Stock st, DataBasket db)
public void add(String sKey, int nCount, DataBasket db)
public void remove(String sKey, int nCount, DataBasket db) throws VetoException
|
SalesPoint Framework v3.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |