data.filters
Class StoringStockFilter
java.lang.Object
|
+--data.filters.AbstractStockFilter
|
+--data.filters.StoringStockFilter
- public abstract class StoringStockFilter
- extends AbstractStockFilter
- implements StoringStock
StockFilter for StoringStocks.
The filter condition can be defined by overriding method
contains(data.StockItem, data.DataBasket)
.
- Hooks:
- Define StoringStock Filter
- Since:
- v2.0
- Version:
- 2.0 19/08/1999
- Author:
- Steffen Zschaler
- See Also:
- Serialized Form
Methods inherited from class data.filters.AbstractStockFilter |
add,
addedStockItems,
addNameListener,
addPropertyChangeListener,
addStock,
addStockChangeListener,
attach,
canEditStockItems,
canRemoveStockItems,
clone,
commitAddStockItems,
commitEditStockItems,
commitRemoveStockItems,
compareTo,
contains,
detachNC,
editingStockItems,
fillStockWithValue,
fireCanEditStockItems,
fireCanRemoveStockItems,
fireEditingStockItems,
fireStockItemsAddCommit,
fireStockItemsAdded,
fireStockItemsAddRollback,
fireStockItemsEditCommit,
fireStockItemsEditRollback,
fireStockItemsNoEdit,
fireStockItemsNoRemove,
fireStockItemsRemoveCommit,
fireStockItemsRemoved,
fireStockItemsRemoveRollback,
getAssociatedItem,
getCatalog,
getMainStock,
getName,
getStock,
iterator,
keySet,
noEditStockItems,
noRemoveStockItems,
remove,
remove,
removedStockItems,
removeNameListener,
removePropertyChangeListener,
removeStockChangeListener,
rollbackAddStockItems,
rollbackEditStockItems,
rollbackRemoveStockItems,
setName,
size,
sumStock |
StoringStockFilter
public StoringStockFilter(StoringStock ssSource)
- Create a new StoringStockFilter.
- Parameters:
ssSource
- the source Stock.
get
public Iterator get(String sKey,
DataBasket db,
boolean fForEdit)
- Get all StockItems for a given key that are contained in the filtered Stock.
- Override:
- Never.
countItems
public int countItems(String sKey,
DataBasket db)
- Count all StockItems for a given key that are contained in the filtered Stock.
- Override:
- Never.
contains
public abstract boolean contains(StockItem si,
DataBasket db)
- Filter condition: Check whether a given item is contained in the filtered Stock.
- Override:
- Always.
- Parameters:
si
- the StockItem to be checked.db
- the DataBasket to be used to check visibility.- Returns:
- true if the given item is to be contained in the filtered Stock.
- Hooks:
- Define StoringStock Filter
containsStock
public boolean containsStock(Stock st,
DataBasket db)
- Check whether the given Stock is contained in the filtered Stock.
- Override:
- Never.