Package org.camunda.bpm.engine.impl.form
Class FormFieldImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.form.FormFieldImpl
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanbusinessKeyprotected ObjectdefaultValueprotected Stringidprotected Stringlabelprotected Map<String,String>propertiesprotected FormTypetypeprotected List<FormFieldValidationConstraint>validationConstraintsprotected TypedValuevalue
-
Constructor Summary
Constructors Constructor Description FormFieldImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetDefaultValue()StringgetId()StringgetLabel()Map<String,String>getProperties()FormTypegetType()StringgetTypeName()List<FormFieldValidationConstraint>getValidationConstraints()TypedValuegetValue()booleanisBusinessKey()voidsetBusinessKey(boolean businessKey)voidsetDefaultValue(Object defaultValue)voidsetId(String id)voidsetLabel(String label)voidsetProperties(Map<String,String> properties)voidsetType(FormType type)voidsetValidationConstraints(List<FormFieldValidationConstraint> validationConstraints)voidsetValue(TypedValue value)
-
-
-
Field Detail
-
businessKey
protected boolean businessKey
-
id
protected String id
-
label
protected String label
-
type
protected FormType type
-
defaultValue
protected Object defaultValue
-
value
protected TypedValue value
-
validationConstraints
protected List<FormFieldValidationConstraint> validationConstraints
-
-
Method Detail
-
getId
public String getId()
-
setId
public void setId(String id)
-
getLabel
public String getLabel()
-
setLabel
public void setLabel(String label)
-
getType
public FormType getType()
-
getTypeName
public String getTypeName()
- Specified by:
getTypeNamein interfaceFormField- Returns:
- the name of the type of this form field
-
setType
public void setType(FormType type)
-
getDefaultValue
public Object getDefaultValue()
- Specified by:
getDefaultValuein interfaceFormField- Returns:
- the default value for this form field.
-
getValue
public TypedValue getValue()
-
setDefaultValue
public void setDefaultValue(Object defaultValue)
-
setValue
public void setValue(TypedValue value)
-
getProperties
public Map<String,String> getProperties()
- Specified by:
getPropertiesin interfaceFormField- Returns:
- a
Mapof 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.
-
getValidationConstraints
public List<FormFieldValidationConstraint> getValidationConstraints()
- Specified by:
getValidationConstraintsin interfaceFormField- Returns:
- a list of
ValidationConstraints.
-
setValidationConstraints
public void setValidationConstraints(List<FormFieldValidationConstraint> validationConstraints)
-
isBusinessKey
public boolean isBusinessKey()
- Specified by:
isBusinessKeyin interfaceFormField- Returns:
- true if field is defined as businessKey, false otherwise
-
setBusinessKey
public void setBusinessKey(boolean businessKey)
-
-