org.jdesktop.swingx.calendar
Class JXDatePickerFormatterFactory
java.lang.Object
javax.swing.JFormattedTextField.AbstractFormatterFactory
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
formatter
protected JFormattedTextField.AbstractFormatter formatter
- Cached formatter
JXDatePickerFormatterFactory
public JXDatePickerFormatterFactory()
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