com.nqadmin.swingSet.formatting
Class SSCurrencyFormatterFactory
java.lang.Object
javax.swing.JFormattedTextField.AbstractFormatterFactory
javax.swing.text.DefaultFormatterFactory
com.nqadmin.swingSet.formatting.SSCurrencyFormatterFactory
- All Implemented Interfaces:
- java.io.Serializable
public class SSCurrencyFormatterFactory
- extends javax.swing.text.DefaultFormatterFactory
- implements java.io.Serializable
- See Also:
- Serialized Form
|
Constructor Summary |
SSCurrencyFormatterFactory()
SSCurrencyFormatterFactory constructor, without arguments. |
SSCurrencyFormatterFactory(int precision,
int decimals)
Creates SSCurrencyFormatterFactory object with the specified precision & decimals |
SSCurrencyFormatterFactory(int precision,
int decimals,
java.util.Locale editorLocale,
java.util.Locale displayLocale)
Creates SSCurrencyFormatterFactory object with the specified precision, decimals, editor locale & display locale |
| Methods inherited from class javax.swing.text.DefaultFormatterFactory |
getDefaultFormatter, getDisplayFormatter, getEditFormatter, getFormatter, getNullFormatter, setDefaultFormatter, setDisplayFormatter, setEditFormatter, setNullFormatter |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SSCurrencyFormatterFactory
public SSCurrencyFormatterFactory()
- SSCurrencyFormatterFactory constructor, without arguments.
Creates a SSCurrencyFormatter with default Locale
SSCurrencyFormatterFactory
public SSCurrencyFormatterFactory(int precision,
int decimals)
- Creates SSCurrencyFormatterFactory object with the specified precision & decimals
- Parameters:
precision - - number of digits needed in the integer portion of the numberdecimals - - number of digits needed in the fraction portion of the number
SSCurrencyFormatterFactory
public SSCurrencyFormatterFactory(int precision,
int decimals,
java.util.Locale editorLocale,
java.util.Locale displayLocale)
- Creates SSCurrencyFormatterFactory object with the specified precision, decimals, editor locale & display locale
- Parameters:
precision - - number of digits needed in the integer portion of the numberdecimals - - number of digits needed in the fraction portion of the numbereditorLocale - - locale to be used by the editordisplayLocale - - locale to be used while displaying number