org.jdesktop.swingx.calendar
Class JXDatePickerFormatterFactory

java.lang.Object
  extended by javax.swing.JFormattedTextField.AbstractFormatterFactory
      extended by org.jdesktop.swingx.calendar.JXDatePickerFormatterFactory

public class JXDatePickerFormatterFactory
extends JFormattedTextField.AbstractFormatterFactory

Default formatter factory for the JXDatePicker component. This factory creates and returns a formatter that can handle a variety of date formats.


Field Summary
protected  JFormattedTextField.AbstractFormatter formatter
          Cached formatter
 
Constructor Summary
JXDatePickerFormatterFactory()
           
 
Method Summary
 JFormattedTextField.AbstractFormatter getFormatter(JFormattedTextField ftf)
          Returns an AbstractFormatter that can handle formatting of the passed in JFormattedTextField.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

formatter

protected JFormattedTextField.AbstractFormatter formatter
Cached formatter

Constructor Detail

JXDatePickerFormatterFactory

public JXDatePickerFormatterFactory()
Method Detail

getFormatter

public JFormattedTextField.AbstractFormatter getFormatter(JFormattedTextField ftf)
Returns an AbstractFormatter that can handle formatting of the passed in JFormattedTextField.

Specified by:
getFormatter in class JFormattedTextField.AbstractFormatterFactory
Parameters:
ftf - JFormattedTextField requesting AbstractFormatter
Returns:
AbstractFormatter to handle formatting duties, a null return value implies the JFormattedTextField should behave like a normal JTextField