org.camunda.bpm.engine.impl.form.engine
Class FormPropertyAdapter

java.lang.Object
  extended by org.camunda.bpm.engine.impl.form.engine.FormPropertyAdapter
All Implemented Interfaces:
FormField

public class FormPropertyAdapter
extends Object
implements FormField

Author:
Daniel Meyer

Field Summary
protected  FormProperty formProperty
           
protected  List<FormFieldValidationConstraint> validationConstraints
           
 
Constructor Summary
FormPropertyAdapter(FormProperty formProperty)
           
 
Method Summary
 Object getDefaultValue()
           
 TypedValue getDefaultValueTyped()
           
 String getId()
           
 String getLabel()
           
 Map<String,String> getProperties()
           
 FormType getType()
           
 String getTypeName()
           
 List<FormFieldValidationConstraint> getValidationConstraints()
           
 TypedValue getValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

formProperty

protected FormProperty formProperty

validationConstraints

protected List<FormFieldValidationConstraint> validationConstraints
Constructor Detail

FormPropertyAdapter

public FormPropertyAdapter(FormProperty formProperty)
Method Detail

getId

public String getId()
Specified by:
getId in interface FormField
Returns:
the Id of a form property. Must be unique for a given form. The id is used for mapping the form field to a process variable.

getLabel

public String getLabel()
Specified by:
getLabel in interface FormField
Returns:
the human-readable display name of a form property.

getType

public FormType getType()
Specified by:
getType in interface FormField
Returns:
the type of this form field.

getTypeName

public String getTypeName()
Specified by:
getTypeName in interface FormField
Returns:
the name of the type of this form field

getDefaultValue

public Object getDefaultValue()
Specified by:
getDefaultValue in interface FormField
Returns:
the default value for this form field.

getValidationConstraints

public List<FormFieldValidationConstraint> getValidationConstraints()
Specified by:
getValidationConstraints in interface FormField
Returns:
a list of ValidationConstraints.

getProperties

public Map<String,String> getProperties()
Specified by:
getProperties in interface FormField
Returns:
a Map of additional properties. This map may be used for adding additional configuration to a form field. An example may be layout hints such as the size of the rendered form field or information about an icon to prepend or append to the rendered form field.

getDefaultValueTyped

public TypedValue getDefaultValueTyped()

getValue

public TypedValue getValue()
Specified by:
getValue in interface FormField
Returns:
the value for this form field


Copyright © 2015 camunda services GmbH. All rights reserved.