Großmarkt

market
Class CFilter

java.lang.Object
  extended by data.filters.CatalogFilter
      extended by market.CFilter
All Implemented Interfaces:
Catalog, CatalogItem, DataBasketEntryDestination, DataBasketEntrySource, CatalogChangeListener, ListenableCatalog, Nameable, Serializable, Comparable, EventListener, HelpableListener

public class CFilter
extends CatalogFilter

Filters CatalogItems by their category.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class data.filters.CatalogFilter
m_cOrg, m_lhListeners
 
Constructor Summary
CFilter(Catalog source, int filter)
           
 
Method Summary
 boolean match(CatalogItem ci)
          The actual filtering.
 
Methods inherited from class data.filters.CatalogFilter
add, addCatalogChangeListener, addedCatalogItem, addNameListener, addPropertyChangeListener, addValueListener, attach, canEditCatalogItem, canRemoveCatalogItem, commitedAddCatalogItem, commitEditCatalogItem, commitedRemoveCatalogItem, compareTo, contains, detachNC, editingCatalogItem, fireCanEditCatalogItem, fireCanRemoveCatalogItem, fireCatalogItemAddCommit, fireCatalogItemAdded, fireCatalogItemAddRollback, fireCatalogItemRemoveCommit, fireCatalogItemRemoved, fireCatalogItemRemoveRollback, fireCommitEditCatalogItem, fireEditingCatalogItem, fireNoEditCatalogItem, fireNoRemoveCatalogItem, fireRollbackEditCatalogItem, get, getCatalog, getMainCatalog, getName, getValue, iterator, keySet, noEditCatalogItem, noRemoveCatalogItem, remove, remove, removeCatalogChangeListener, removedCatalogItem, removeNameListener, removePropertyChangeListener, removeValueListener, rollbackEditCatalogItem, rolledbackAddCatalogItem, rolledbackRemoveCatalogItem, setName, size, subscribe, unsubscribe, updateModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CFilter

public CFilter(Catalog source,
               int filter)
Parameters:
source - the source catalog.
filter - the filter to be applied:
  • 0: no CatalogItems are filtered
  • 1: CatalogItems are filtered by their category
Method Detail

match

public boolean match(CatalogItem ci)
The actual filtering.

Specified by:
match in class CatalogFilter
Parameters:
ci - the CatalogItem to be checked.
Returns:
true if CatalogItem passed the filter successfully, otherwise false.

Großmarkt