| com.xoetrope.swing.XMoneyEdit
XMoneyEdit | public class XMoneyEdit extends XEdit implements XTextHolder(Code) | | Handles input of monetary values, stripping out the thousand separators as needed.
THIS CLASS IS INCOMPLETE
Copyright (c) Xoetrope Ltd., 2001-2007, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Xoetrope.
|
thousandSeparator | protected char thousandSeparator(Code) | | |
XMoneyEdit | public XMoneyEdit()(Code) | | Create a new XMoneyEdit
|
getCurrency | public String getCurrency()(Code) | | Set the format of the currency field
- the group separator |
getFormat | public String getFormat()(Code) | | Set the format of the currency field
- the group separator |
getLocaleCountry | public String getLocaleCountry()(Code) | | Get the locale country code
the language code |
getLocaleLanguage | public String getLocaleLanguage()(Code) | | Get the locale language code
the language code |
getNumberFormat | public NumberFormat getNumberFormat()(Code) | | Set the DecimalFormat of the currency field
- the format |
getText | public String getText()(Code) | | Gets the value of the control stripping out and thousand separators and
spaces in the process
the stripped value |
isPrefixed | public boolean isPrefixed()(Code) | | Does the format to use a currency prefix
true if a prefix is used |
isSuffixed | public boolean isSuffixed()(Code) | | Does the format to use a currency suffix
trueif a prefix is used |
setAttribute | public int setAttribute(String attribName, Object attribValue)(Code) | | Set one or more attributes of the component.
- format, value=the currency format
- currency, value=the ISO 4217 currency code
- alignment, value=(Left|Right|Center|Leading|Trailing)
- border, value=0, to tun off the border
- margin, value=the size in pixels of the margin (the space between the border and the text)
- tooltip, value=the tooltip text
- format, value=integer|curreny|date|decimal or a mask for a mask format
- editable, value=(true|false) set the edit to being editable
- antialias, value=(true|false) antialias the text
Parameters: attribName - the name of the attribute Parameters: attribValue - the value of the attribute 0 for success, non zero for failure or to require some further action |
setCurrency | public void setCurrency(String currencyCode)(Code) | | Set the currency field
Parameters: currency - the new currency |
setFormat | public void setFormat(String format)(Code) | | Set the format of the currency field
Parameters: format - the new currency format - the group separator |
setLocaleCountry | public void setLocaleCountry(String countryCode)(Code) | | Set the locale country code e.g 'IE', 'US', 'FR'
Parameters: countryCode - country code of the new currency |
setLocaleLanguage | public void setLocaleLanguage(String localeCode)(Code) | | Set the country code for the currency e.g 'EN', 'DA', 'FR'
Parameters: localeCode - the language code of the new currency |
setNumberFormat | public void setNumberFormat(NumberFormat df)(Code) | | Set the DecimalFormat of the currency field
Parameters: df - the new DecimalFormat |
setPrefixed | public void setPrefixed(boolean state)(Code) | | Set the currency prefix flag
Parameters: state - true if a prefix is to be used |
setSuffixed | public void setSuffixed(boolean state)(Code) | | Set the currency suffix flag
Parameters: state - true if a suffix is to be used |
|
|