Großmarkt

market
Class CFilter

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

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
 
Fields inherited from interface data.CatalogItem
VALUE_PROPERTY
 
Fields inherited from interface data.Nameable
NAME_PROPERTY
 
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:
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