|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.salespointframework.core.data.AbstractNameable
org.salespointframework.core.data.CatalogItemImpl
org.salespointframework.core.data.CatalogImpl<CurrencyItemImpl>
org.salespointframework.core.data.CurrencyImpl
EUROCurrencyImpl
@Deprecated public class CurrencyImpl
Pure Java implementation of the Currency
interface.
Field Summary | |
---|---|
static java.lang.String |
DM_SCHEIN_10
Deprecated. Field string represents the mainkey for an added CurrencyItemImpl . |
static java.lang.String |
DM_SCHEIN_100
Deprecated. Field string represents the mainkey for an added CurrencyItemImpl . |
static java.lang.String |
DM_SCHEIN_1000
Deprecated. Field string represents the mainkey for an added CurrencyItemImpl . |
static java.lang.String |
DM_SCHEIN_20
Deprecated. Field string represents the mainkey for an added CurrencyItemImpl . |
static java.lang.String |
DM_SCHEIN_200
Deprecated. Field string represents the mainkey for an added CurrencyItemImpl . |
static java.lang.String |
DM_SCHEIN_5
Deprecated. Field string represents the mainkey for an added CurrencyItemImpl . |
static java.lang.String |
DM_SCHEIN_50
Deprecated. Field string represents the mainkey for an added CurrencyItemImpl . |
static java.lang.String |
DM_SCHEIN_500
Deprecated. Field string represents the mainkey for an added CurrencyItemImpl . |
static java.lang.String |
DM_STCK_1
Deprecated. Field string represents the mainkey for an added CurrencyItemImpl . |
static java.lang.String |
DM_STCK_10
Deprecated. Field string represents the mainkey for an added CurrencyItemImpl . |
static java.lang.String |
DM_STCK_2
Deprecated. Field string represents the mainkey for an added CurrencyItemImpl . |
static java.lang.String |
DM_STCK_5
Deprecated. Field string represents the mainkey for an added CurrencyItemImpl . |
private int[] |
m_anDenominations
Deprecated. |
private java.text.NumberFormat |
m_nfFormatter
Deprecated. Tool used to format and parse currency values. |
static java.lang.String |
PFENNIG_STCK_1
Deprecated. Field string represents the mainkey for an added CurrencyItemImpl . |
static java.lang.String |
PFENNIG_STCK_10
Deprecated. Field string represents the mainkey for an added CurrencyItemImpl . |
static java.lang.String |
PFENNIG_STCK_2
Deprecated. Field string represents the mainkey for an added CurrencyItemImpl . |
static java.lang.String |
PFENNIG_STCK_5
Deprecated. Field string represents the mainkey for an added CurrencyItemImpl . |
static java.lang.String |
PFENNIG_STCK_50
Deprecated. Field string represents the mainkey for an added CurrencyItemImpl . |
Fields inherited from class org.salespointframework.core.data.CatalogImpl |
---|
m_lhListeners, m_nModCount |
Fields inherited from class org.salespointframework.core.data.AbstractNameable |
---|
m_ncContext, m_pcsPropertyListeners, SOME_PROPERTY |
Fields inherited from interface org.salespointframework.core.data.interfaces.CatalogItem |
---|
VALUE_PROPERTY |
Fields inherited from interface org.salespointframework.core.data.interfaces.Nameable |
---|
NAME_PROPERTY |
Fields inherited from interface org.salespointframework.core.data.interfaces.DataBasketKeys |
---|
CATALOG_ITEM_MAIN_KEY, STOCK_ITEM_MAIN_KEY |
Constructor Summary | |
---|---|
CurrencyImpl(java.lang.String sName)
Deprecated. Create a new CurrencyImpl with a default locale of Locale.GERMANY and fill it. |
|
CurrencyImpl(java.lang.String sName,
java.util.Locale l)
Deprecated. Create a new, initially empty CurrencyImpl for the given locale. |
Method Summary | |
---|---|
NumberValue |
parse(java.lang.String s)
Deprecated. Try to parse the given String as a currency value in the currency's associated format. |
java.lang.String |
toString(NumberValue nv)
Deprecated. Return a String representation of the given NumberValue assuming it is a value given in the smallest unit of this currency. |
Methods inherited from class org.salespointframework.core.data.CatalogItemImpl |
---|
addValueListener, compareTo, equals, firePropertyChanged, getCatalog, getImage, getImageBytes, getInternalShallowClone, getValue, isEditable, recover, removeValueListener, setImage, setImageBytes, setValue |
Methods inherited from class org.salespointframework.core.data.AbstractNameable |
---|
addNameListener, addPropertyChangeListener, attach, detachNC, getName, removeNameListener, removePropertyChangeListener, setName |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, 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 |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Field Detail |
---|
private java.text.NumberFormat m_nfFormatter
public static java.lang.String PFENNIG_STCK_1
CurrencyItemImpl
.
1-Pfennig-Stueck
public static java.lang.String PFENNIG_STCK_2
CurrencyItemImpl
.
2-Pfennig-Stueck
public static java.lang.String PFENNIG_STCK_5
CurrencyItemImpl
.
5-Pfennig-Stueck
public static java.lang.String PFENNIG_STCK_10
CurrencyItemImpl
.
10-Pfennig-Stueck
public static java.lang.String PFENNIG_STCK_50
CurrencyItemImpl
.
50-Pfennig-Stueck
public static java.lang.String DM_STCK_1
CurrencyItemImpl
.
1-Mark-Stueck
public static java.lang.String DM_STCK_2
CurrencyItemImpl
.
2-Mark-Stueck
public static java.lang.String DM_STCK_5
CurrencyItemImpl
.
5-Mark-Stueck
public static java.lang.String DM_SCHEIN_5
CurrencyItemImpl
.
5-Mark-Schein
public static java.lang.String DM_STCK_10
CurrencyItemImpl
.
10-Mark-Stueck
public static java.lang.String DM_SCHEIN_10
CurrencyItemImpl
.
10-Mark-Schein
public static java.lang.String DM_SCHEIN_20
CurrencyItemImpl
.
20-Mark-Schein
public static java.lang.String DM_SCHEIN_50
CurrencyItemImpl
.
50-Mark-Schein
public static java.lang.String DM_SCHEIN_100
CurrencyItemImpl
.
100-Mark-Schein
public static java.lang.String DM_SCHEIN_200
CurrencyItemImpl
.
200-Mark-Schein
public static java.lang.String DM_SCHEIN_500
CurrencyItemImpl
.
500-Mark-Schein
public static java.lang.String DM_SCHEIN_1000
CurrencyItemImpl
.
1000-Mark-Schein
private int[] m_anDenominations
Constructor Detail |
---|
public CurrencyImpl(java.lang.String sName, java.util.Locale l)
sName
- the name of the currency to create.l
- the locale that determines how currency values will be formatted.public CurrencyImpl(java.lang.String sName)
Locale.GERMANY
and fill it.
The currency will already contain all denominations that are available in the DEM currency.
sName
- the name of the new currency.Method Detail |
---|
public java.lang.String toString(NumberValue nv)
toString
in interface Currency<CurrencyItemImpl>
nv
- the value to be rendered.
public NumberValue parse(java.lang.String s) throws java.text.ParseException
parse
in interface Currency<CurrencyItemImpl>
s
- the text to be parsed.
java.text.ParseException
- if the given String could not be interpreted as a currency value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |