Package org.camunda.bpm.engine.impl.form
Class FormFieldImpl
java.lang.Object
org.camunda.bpm.engine.impl.form.FormFieldImpl
- All Implemented Interfaces:
FormField
- Author:
- Daniel Meyer
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected Object
protected String
protected String
protected FormType
protected List<FormFieldValidationConstraint>
protected TypedValue
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
getLabel()
getType()
getValue()
boolean
void
setBusinessKey
(boolean businessKey) void
setDefaultValue
(Object defaultValue) void
void
void
setProperties
(Map<String, String> properties) void
void
setValidationConstraints
(List<FormFieldValidationConstraint> validationConstraints) void
setValue
(TypedValue value)
-
Field Details
-
businessKey
protected boolean businessKey -
id
-
label
-
type
-
defaultValue
-
value
-
validationConstraints
-
properties
-
-
Constructor Details
-
FormFieldImpl
public FormFieldImpl()
-
-
Method Details
-
getId
-
setId
-
getLabel
-
setLabel
-
getType
-
getTypeName
- Specified by:
getTypeName
in interfaceFormField
- Returns:
- the name of the type of this form field
-
setType
-
getDefaultValue
- Specified by:
getDefaultValue
in interfaceFormField
- Returns:
- the default value for this form field.
-
getValue
-
setDefaultValue
-
setValue
-
getProperties
- Specified by:
getProperties
in interfaceFormField
- 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
-
getValidationConstraints
- Specified by:
getValidationConstraints
in interfaceFormField
- Returns:
- a list of
ValidationConstraints
.
-
setValidationConstraints
-
isBusinessKey
public boolean isBusinessKey()- Specified by:
isBusinessKey
in interfaceFormField
- Returns:
- true if field is defined as businessKey, false otherwise
-
setBusinessKey
public void setBusinessKey(boolean businessKey)
-