public class EnumFormType extends SimpleFormFieldType
| 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) |
TypedValue |
convertValue(TypedValue propertyValue) |
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) |
convertToFormValue, convertToModelValuepublic static final String TYPE_NAME
public String getName()
FormTypegetName in interface FormTypegetName in class AbstractFormFieldTypepublic Object getInformation(String key)
FormTypegetInformation in interface FormTypegetInformation in class AbstractFormFieldTypepublic TypedValue convertValue(TypedValue propertyValue)
convertValue in class SimpleFormFieldTypeprotected void validateValue(Object value)
public Object convertFormValueToModelValue(Object propertyValue)
convertFormValueToModelValue in class AbstractFormFieldTypepublic String convertModelValueToFormValue(Object modelValue)
convertModelValueToFormValue in class AbstractFormFieldTypeCopyright © 2013–2019 camunda services GmbH. All rights reserved.