Class DateEditor

All Implemented Interfaces:
PropertyEditor, Converter

public class DateEditor extends AbstractConverter
A property editor for Date typed properties.
Version:
$Rev$ $Date$
  • Constructor Details

  • Method Details

    • toObjectImpl

      protected Object toObjectImpl(String text)
      Convert the text value of the property into a Date object instance.
      Specified by:
      toObjectImpl in class AbstractConverter
      Parameters:
      text - the text to convert
      Returns:
      a Date object constructed from the property text value.
      Throws:
      PropertyEditorException - Unable to parse the string value into a Date.
    • toStringImpl

      protected String toStringImpl(Object value)
      Description copied from class: AbstractConverter
      Converts the supplied object to text. The supplied object will always be an instance of the editor type, and specifically will never be null or a String (unless this is the String editor).
      Overrides:
      toStringImpl in class AbstractConverter
      Parameters:
      value - an instance of the editor type
      Returns:
      the text equivalent of the value