Class StructuredDateEditor

  • All Implemented Interfaces:
    java.beans.PropertyEditor, StructuredPropertyEditor

    public class StructuredDateEditor
    extends org.springframework.beans.propertyeditors.CustomDateEditor
    implements StructuredPropertyEditor
    Structured editor for editing dates that takes 5 fields that represent the year, month, day, hour and minute and constructs a Date instance
    Since:
    1.0.4
    • Constructor Summary

      Constructors 
      Constructor Description
      StructuredDateEditor​(java.text.DateFormat dateFormat, boolean b)  
      StructuredDateEditor​(java.text.DateFormat dateFormat, boolean b, int i)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object assemble​(java.lang.Class type, java.util.Map fieldValues)
      Assemble and bind a property value from the specified fieldValues and the given type
      java.util.List<java.lang.String> getOptionalFields()  
      java.util.List<java.lang.String> getRequiredFields()  
      • Methods inherited from class org.springframework.beans.propertyeditors.CustomDateEditor

        getAsText, setAsText
      • Methods inherited from class java.beans.PropertyEditorSupport

        addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StructuredDateEditor

        public StructuredDateEditor​(java.text.DateFormat dateFormat,
                                    boolean b)
      • StructuredDateEditor

        public StructuredDateEditor​(java.text.DateFormat dateFormat,
                                    boolean b,
                                    int i)
    • Method Detail

      • assemble

        public java.lang.Object assemble​(java.lang.Class type,
                                         java.util.Map fieldValues)
                                  throws java.lang.IllegalArgumentException
        Description copied from interface: StructuredPropertyEditor
        Assemble and bind a property value from the specified fieldValues and the given type
        Specified by:
        assemble in interface StructuredPropertyEditor
        Parameters:
        type - The type
        fieldValues - The field values
        Returns:
        A bound property
        Throws:
        java.lang.IllegalArgumentException - Thrown in one of the field values is illegal