com.nqadmin.swingSet.formatting
Class SSDateFormatterFactory

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

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

Author:
dags
See Also:
Serialized Form

Field Summary
static int DDMMYYYY
          Constant for date format
static int MMDDYYYY
          Constant for date format
 
Constructor Summary
SSDateFormatterFactory()
          Constructs a default SSDateFormatterFactory.
SSDateFormatterFactory(int format)
          Creates an object of SSDateFormatterFactory with the specified format.
 
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
 

Field Detail

MMDDYYYY

public static final int MMDDYYYY
Constant for date format

See Also:
Constant Field Values

DDMMYYYY

public static final int DDMMYYYY
Constant for date format

See Also:
Constant Field Values
Constructor Detail

SSDateFormatterFactory

public SSDateFormatterFactory()
Constructs a default SSDateFormatterFactory.


SSDateFormatterFactory

public SSDateFormatterFactory(int format)
Creates an object of SSDateFormatterFactory with the specified format.

Parameters:
format - - format to be used for date while in editing mode. The default format is DDMMYYYY