public class EnumFormType extends AbstractFormFieldType
Modifier and Type | Field and Description |
---|---|
static String |
TYPE_NAME |
protected Map<String,String> |
values |
Constructor and Description |
---|
EnumFormType(Map<String,String> values) |
Modifier and Type | Method and Description |
---|---|
Object |
convertFormValueToModelValue(Object 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.
|
Map<String,String> |
getValues() |
protected void |
validateValue(Object value) |
public static final String TYPE_NAME
public String getName()
FormType
getName
in interface FormType
getName
in class AbstractFormFieldType
public Object getInformation(String key)
FormType
getInformation
in interface FormType
getInformation
in class AbstractFormFieldType
public Object convertFormValueToModelValue(Object propertyValue)
convertFormValueToModelValue
in class AbstractFormFieldType
public String convertModelValueToFormValue(Object modelValue)
convertModelValueToFormValue
in class AbstractFormFieldType
protected void validateValue(Object value)
Copyright © 2015. All rights reserved.