Class DateFormType
- java.lang.Object
-
- org.camunda.bpm.engine.impl.form.type.AbstractFormFieldType
-
- org.camunda.bpm.engine.impl.form.type.DateFormType
-
- All Implemented Interfaces:
FormType
public class DateFormType extends AbstractFormFieldType
- Author:
- Tom Baeyens
-
-
Field Summary
Fields Modifier and Type Field Description protected java.text.DateFormat
dateFormat
protected java.lang.String
datePattern
static java.lang.String
TYPE_NAME
-
Constructor Summary
Constructors Constructor Description DateFormType(java.lang.String datePattern)
-
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
convertToFormValue(TypedValue modelValue)
TypedValue
convertToModelValue(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.
-
-
-
Field Detail
-
TYPE_NAME
public static final java.lang.String TYPE_NAME
- See Also:
- Constant Field Values
-
datePattern
protected java.lang.String datePattern
-
dateFormat
protected java.text.DateFormat dateFormat
-
-
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
-
convertToModelValue
public TypedValue convertToModelValue(TypedValue propertyValue)
- Specified by:
convertToModelValue
in classAbstractFormFieldType
-
convertToFormValue
public TypedValue convertToFormValue(TypedValue modelValue)
- Specified by:
convertToFormValue
in classAbstractFormFieldType
-
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
-
-