Class EnumFormType
- java.lang.Object
-
- org.camunda.bpm.engine.impl.form.type.AbstractFormFieldType
-
- org.camunda.bpm.engine.impl.form.type.SimpleFormFieldType
-
- org.camunda.bpm.engine.impl.form.type.EnumFormType
-
- All Implemented Interfaces:
FormType
public class EnumFormType extends SimpleFormFieldType
- Author:
- Tom Baeyens
-
-
Constructor Summary
Constructors Constructor Description EnumFormType(java.util.Map<java.lang.String,java.lang.String> values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
convertFormValueToModelValue(java.lang.Object propertyValue)
java.lang.String
convertModelValueToFormValue(java.lang.Object modelValue)
TypedValue
convertValue(TypedValue propertyValue)
java.lang.Object
getInformation(java.lang.String key)
Retrieve type specific extra information like the list of values for enum types or the format for date types.java.lang.String
getName()
Name for the form type.java.util.Map<java.lang.String,java.lang.String>
getValues()
protected void
validateValue(java.lang.Object value)
-
Methods inherited from class org.camunda.bpm.engine.impl.form.type.SimpleFormFieldType
convertToFormValue, convertToModelValue
-
-
-
-
Field Detail
-
TYPE_NAME
public static final java.lang.String TYPE_NAME
- See Also:
- Constant Field Values
-
values
protected java.util.Map<java.lang.String,java.lang.String> values
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:FormType
Name for the form type.- Specified by:
getName
in interfaceFormType
- Specified by:
getName
in classAbstractFormFieldType
-
getInformation
public java.lang.Object getInformation(java.lang.String key)
Description copied from interface:FormType
Retrieve type specific extra information like the list of values for enum types or the format for date types. Look in the userguide for which extra information keys each type provides and what return type they give.- Specified by:
getInformation
in interfaceFormType
- Overrides:
getInformation
in classAbstractFormFieldType
-
convertValue
public TypedValue convertValue(TypedValue propertyValue)
- Specified by:
convertValue
in classSimpleFormFieldType
-
validateValue
protected void validateValue(java.lang.Object value)
-
getValues
public java.util.Map<java.lang.String,java.lang.String> getValues()
-
convertFormValueToModelValue
public java.lang.Object convertFormValueToModelValue(java.lang.Object propertyValue)
- Specified by:
convertFormValueToModelValue
in classAbstractFormFieldType
-
convertModelValueToFormValue
public java.lang.String convertModelValueToFormValue(java.lang.Object modelValue)
- Specified by:
convertModelValueToFormValue
in classAbstractFormFieldType
-
-