org.jdesktop.swingx
Class JXDatePickerFormatter
java.lang.Object
javax.swing.JFormattedTextField.AbstractFormatter
org.jdesktop.swingx.JXDatePickerFormatter
- All Implemented Interfaces:
- java.io.Serializable
public class JXDatePickerFormatter
- extends javax.swing.JFormattedTextField.AbstractFormatter
Default formatter for the JXDatePicker component. This factory
creates and returns a formatter that can handle a variety of date
formats.
- See Also:
- Serialized Form
Methods inherited from class javax.swing.JFormattedTextField.AbstractFormatter |
clone, getActions, getDocumentFilter, getFormattedTextField, getNavigationFilter, install, invalidEdit, setEditValid, uninstall |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JXDatePickerFormatter
public JXDatePickerFormatter()
JXDatePickerFormatter
public JXDatePickerFormatter(java.text.DateFormat[] formats)
getFormats
public java.text.DateFormat[] getFormats()
stringToValue
public java.lang.Object stringToValue(java.lang.String text)
throws java.text.ParseException
-
- Specified by:
stringToValue
in class javax.swing.JFormattedTextField.AbstractFormatter
- Throws:
java.text.ParseException
valueToString
public java.lang.String valueToString(java.lang.Object value)
throws java.text.ParseException
-
- Specified by:
valueToString
in class javax.swing.JFormattedTextField.AbstractFormatter
- Throws:
java.text.ParseException