public class EnumFormType extends AbstractFormType
Constructor and Description |
---|
EnumFormType(Map<String,String> values) |
Modifier and Type | Method and Description |
---|---|
Object |
convertFormValueToModelValue(String propertyValue) |
String |
convertModelValueToFormValue(Object modelValue) |
Object |
getInformation(String key)
Retrieve type specific extra information like
the list of values for enum types or the format
for date types.
|
String |
getName()
Name for the form type.
|
protected void |
validateValue(String value) |
public Object getInformation(String key)
FormType
getInformation
in interface FormType
getInformation
in class AbstractFormType
public Object convertFormValueToModelValue(String propertyValue)
convertFormValueToModelValue
in class AbstractFormType
public String convertModelValueToFormValue(Object modelValue)
convertModelValueToFormValue
in class AbstractFormType
protected void validateValue(String value)
Copyright © 2015. All rights reserved.