SalesPoint v3.3 API

data.filters
Class CurrencyFilter<T extends CurrencyItem>

java.lang.Object
  extended by data.filters.CatalogFilter<T>
      extended by data.filters.CurrencyFilter<T>
All Implemented Interfaces:
Catalog<T>, CatalogItem, Currency<T>, DataBasketEntryDestination, DataBasketEntrySource, CatalogChangeListener<T>, ListenableCatalog<T>, Nameable, Serializable, Comparable<Object>, EventListener, HelpableListener

public abstract class CurrencyFilter<T extends CurrencyItem>
extends CatalogFilter<T>
implements Currency<T>

A CatalogFilter that filters Currencies.

Since:
v2.0
Author:
Steffen Zschaler
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
CurrencyFilter(Currency<T> c)
          Create a new CurrencyFilter.
 
Method Summary
 NumberValue parse(String s)
          Try to parse the given String as a Currency value using the source Currency.
 String toString(NumberValue nv)
          Convert the given value to its String representation using the source Currency.
 
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, match, 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
 
Methods inherited from interface data.Catalog
add, contains, get, iterator, keySet, remove, remove, size
 
Methods inherited from interface data.CatalogItem
addValueListener, getCatalog, getValue, removeValueListener
 
Methods inherited from interface data.Nameable
addNameListener, addPropertyChangeListener, attach, detachNC, getName, removeNameListener, removePropertyChangeListener, setName
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

CurrencyFilter

public CurrencyFilter(Currency<T> c)
Create a new CurrencyFilter.

Parameters:
c - the Currency to be filtered.
Method Detail

toString

public String toString(NumberValue nv)
Convert the given value to its String representation using the source Currency.

Specified by:
toString in interface Currency<T extends CurrencyItem>
Parameters:
nv - the value to be converted
Override:
Never

parse

public NumberValue parse(String s)
                  throws ParseException
Try to parse the given String as a Currency value using the source Currency.

Specified by:
parse in interface Currency<T extends CurrencyItem>
Parameters:
s - the text to be parsed
Returns:
the interpreted value in the smallest unit of the currency.
Throws:
ParseException - if the input could not be parsed.
Override:
Never

SalesPoint v3.3 API