com.nqadmin.swingSet.formatting
Class SSCurrencyFormatterFactory

java.lang.Object
  extended by javax.swing.JFormattedTextField.AbstractFormatterFactory
      extended by javax.swing.text.DefaultFormatterFactory
          extended by com.nqadmin.swingSet.formatting.SSCurrencyFormatterFactory
All Implemented Interfaces:
java.io.Serializable

public class SSCurrencyFormatterFactory
extends javax.swing.text.DefaultFormatterFactory
implements java.io.Serializable

Author:
dags
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
 
Method Summary
 
Methods inherited from class javax.swing.text.DefaultFormatterFactory
getDefaultFormatter, getDisplayFormatter, getEditFormatter, getFormatter, getNullFormatter, setDefaultFormatter, setDisplayFormatter, setEditFormatter, setNullFormatter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 number
decimals - - 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 number
decimals - - number of digits needed in the fraction portion of the number
editorLocale - - locale to be used by the editor
displayLocale - - locale to be used while displaying number