|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.salespointframework.core.data.filters.CatalogFilter<T>
org.salespointframework.core.data.filters.CurrencyFilter<T>
public abstract class CurrencyFilter<T extends CurrencyItem>
A CatalogFilter that filters Currencies
.
Field Summary |
---|
Fields inherited from class org.salespointframework.core.data.filters.CatalogFilter |
---|
m_cOrg, m_lhListeners |
Fields inherited from interface org.salespointframework.core.data.interfaces.CatalogItem |
---|
VALUE_PROPERTY |
Fields inherited from interface org.salespointframework.core.data.interfaces.Nameable |
---|
NAME_PROPERTY |
Constructor Summary | |
---|---|
CurrencyFilter(Currency<T> c)
Create a new CurrencyFilter. |
Method Summary | |
---|---|
NumberValue |
parse(java.lang.String s)
Try to parse the given String as a Currency value using the source Currency. |
java.lang.String |
toString(NumberValue nv)
Convert the given value to its String representation using the source Currency. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.salespointframework.core.data.interfaces.Catalog |
---|
add, contains, get, iterator, keySet, remove, remove, size |
Methods inherited from interface org.salespointframework.core.data.interfaces.CatalogItem |
---|
addValueListener, firePropertyChanged, getCatalog, getImage, getValue, removeValueListener, setImage |
Methods inherited from interface org.salespointframework.core.data.interfaces.Nameable |
---|
addNameListener, addPropertyChangeListener, attach, detachNC, getName, removeNameListener, removePropertyChangeListener, setName |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface org.salespointframework.core.data.interfaces.SpItem |
---|
getName |
Methods inherited from interface org.salespointframework.core.data.events.DatasourceChangeListener |
---|
DatasourceChanged |
Methods inherited from interface org.salespointframework.core.data.events.ExternalModificationListener |
---|
externalModificationOccurred |
Constructor Detail |
---|
public CurrencyFilter(Currency<T> c)
c
- the Currency to be filtered.Method Detail |
---|
public java.lang.String toString(NumberValue nv)
String
representation using the source Currency.
toString
in interface Currency<T extends CurrencyItem>
nv
- the value to be convertedpublic NumberValue parse(java.lang.String s) throws java.text.ParseException
String
as a Currency value using the source Currency.
parse
in interface Currency<T extends CurrencyItem>
s
- the text to be parsed
java.text.ParseException
- if the input could not be parsed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |