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

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

public class FormFieldImpl
extends Object
implements FormField

Author:
Daniel Meyer

Field Summary
protected  boolean businessKey
           
protected  Object defaultValue
           
protected  String id
           
protected  String label
           
protected  Map<String,String> properties
           
protected  FormType type
           
protected  List<FormFieldValidationConstraint> validationConstraints
           
protected  org.camunda.bpm.engine.variable.value.TypedValue value
           
 
Constructor Summary
FormFieldImpl()
           
 
Method Summary
 Object getDefaultValue()
           
 String getId()
           
 String getLabel()
           
 Map<String,String> getProperties()
           
 FormType getType()
           
 String getTypeName()
           
 List<FormFieldValidationConstraint> getValidationConstraints()
           
 org.camunda.bpm.engine.variable.value.TypedValue getValue()
           
 boolean isBusinessKey()
           
 void setBusinessKey(boolean businessKey)
           
 void setDefaultValue(Object defaultValue)
           
 void setId(String id)
           
 void setLabel(String label)
           
 void setProperties(Map<String,String> properties)
           
 void setType(FormType type)
           
 void setValidationConstraints(List<FormFieldValidationConstraint> validationConstraints)
           
 void setValue(org.camunda.bpm.engine.variable.value.TypedValue value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

businessKey

protected boolean businessKey

id

protected String id

label

protected String label

type

protected FormType type

defaultValue

protected Object defaultValue

value

protected org.camunda.bpm.engine.variable.value.TypedValue value

validationConstraints

protected List<FormFieldValidationConstraint> validationConstraints

properties

protected Map<String,String> properties
Constructor Detail

FormFieldImpl

public FormFieldImpl()
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.

setId

public void setId(String id)

getLabel

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

setLabel

public void setLabel(String label)

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

setType

public void setType(FormType type)

getDefaultValue

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

getValue

public org.camunda.bpm.engine.variable.value.TypedValue getValue()
Specified by:
getValue in interface FormField
Returns:
the value for this form field

setDefaultValue

public void setDefaultValue(Object defaultValue)

setValue

public void setValue(org.camunda.bpm.engine.variable.value.TypedValue value)

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.

setProperties

public void setProperties(Map<String,String> properties)

getValidationConstraints

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

setValidationConstraints

public void setValidationConstraints(List<FormFieldValidationConstraint> validationConstraints)

isBusinessKey

public boolean isBusinessKey()
Specified by:
isBusinessKey in interface FormField
Returns:
true if field is defined as businessKey, false otherwise

setBusinessKey

public void setBusinessKey(boolean businessKey)


Copyright © 2016 camunda services GmbH. All rights reserved.