Package org.grails.web.binding
Class StructuredDateEditor
- java.lang.Object
-
- java.beans.PropertyEditorSupport
-
- org.springframework.beans.propertyeditors.CustomDateEditor
-
- org.grails.web.binding.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.Objectassemble(java.lang.Class type, java.util.Map fieldValues)Assemble and bind a property value from the specified fieldValues and the given typejava.util.List<java.lang.String>getOptionalFields()java.util.List<java.lang.String>getRequiredFields()-
Methods inherited from class org.springframework.beans.propertyeditors.CustomDateEditor
getAsText, setAsText
-
-
-
-
Method Detail
-
getRequiredFields
public java.util.List<java.lang.String> getRequiredFields()
- Specified by:
getRequiredFieldsin interfaceStructuredPropertyEditor- Returns:
- The required fields
-
getOptionalFields
public java.util.List<java.lang.String> getOptionalFields()
- Specified by:
getOptionalFieldsin interfaceStructuredPropertyEditor- Returns:
- The optional fields
-
assemble
public java.lang.Object assemble(java.lang.Class type, java.util.Map fieldValues) throws java.lang.IllegalArgumentExceptionDescription copied from interface:StructuredPropertyEditorAssemble and bind a property value from the specified fieldValues and the given type- Specified by:
assemblein interfaceStructuredPropertyEditor- Parameters:
type- The typefieldValues- The field values- Returns:
- A bound property
- Throws:
java.lang.IllegalArgumentException- Thrown in one of the field values is illegal
-
-