org.camunda.bpm.engine.impl.form.type
Class DateFormType

java.lang.Object
  extended by org.camunda.bpm.engine.impl.form.type.AbstractFormFieldType
      extended by org.camunda.bpm.engine.impl.form.type.DateFormType
All Implemented Interfaces:
FormType

public class DateFormType
extends AbstractFormFieldType

Author:
Tom Baeyens

Field Summary
protected  Format dateFormat
           
protected  String datePattern
           
 
Constructor Summary
DateFormType(String datePattern)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

datePattern

protected String datePattern

dateFormat

protected Format dateFormat
Constructor Detail

DateFormType

public DateFormType(String datePattern)
Method Detail

getName

public String getName()
Description copied from interface: FormType
Name for the form type.

Specified by:
getName in interface FormType
Specified by:
getName in class AbstractFormFieldType

getInformation

public Object getInformation(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 interface FormType
Overrides:
getInformation in class AbstractFormFieldType

convertFormValueToModelValue

public Object convertFormValueToModelValue(Object propertyValue)
Specified by:
convertFormValueToModelValue in class AbstractFormFieldType

convertModelValueToFormValue

public String convertModelValueToFormValue(Object modelValue)
Specified by:
convertModelValueToFormValue in class AbstractFormFieldType


Copyright © 2014 camunda services GmbH. All Rights Reserved.