com.nqadmin.swingSet.formatting
Class SSPercentFormatterFactory

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

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

Author:
dags
See Also:
Serialized Form

Constructor Summary
SSPercentFormatterFactory()
          Creates a default object of SSPercentFormatterFactory
SSPercentFormatterFactory(int precision, int decimals)
          Creates an object of SSPercentFormatterFactory with the specified precision & decimals
 
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

SSPercentFormatterFactory

public SSPercentFormatterFactory()
Creates a default object of SSPercentFormatterFactory


SSPercentFormatterFactory

public SSPercentFormatterFactory(int precision,
                                 int decimals)
Creates an object of SSPercentFormatterFactory with the specified precision & decimals

Parameters:
precision - - number of digits needed for integer part of the number
decimals - - number of digits needed for fraction part of the number