swingx
Version 2005-08-19

org.jdesktop.swingx
Class JXDatePickerFormatter

java.lang.Object
  extended by javax.swing.JFormattedTextField.AbstractFormatter
      extended by org.jdesktop.swingx.JXDatePickerFormatter
All Implemented Interfaces:
Serializable

public class JXDatePickerFormatter
extends 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

Constructor Summary
JXDatePickerFormatter()
           
JXDatePickerFormatter(DateFormat[] formats)
           
 
Method Summary
 DateFormat[] getFormats()
           
 Object stringToValue(String text)
          
 String valueToString(Object value)
          
 
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
 

Constructor Detail

JXDatePickerFormatter

public JXDatePickerFormatter()

JXDatePickerFormatter

public JXDatePickerFormatter(DateFormat[] formats)
Method Detail

getFormats

public DateFormat[] getFormats()

stringToValue

public Object stringToValue(String text)
                     throws ParseException

Specified by:
stringToValue in class JFormattedTextField.AbstractFormatter
Throws:
ParseException

valueToString

public String valueToString(Object value)
                     throws ParseException

Specified by:
valueToString in class JFormattedTextField.AbstractFormatter
Throws:
ParseException

swingx
Version 2005-08-19