SalesPoint Framework v3.1

data.filters
Class CurrencyFilter

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

public abstract class CurrencyFilter
extends CatalogFilter
implements Currency

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 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 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
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
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 Framework v3.1