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 boolean
businessKey
protected Object
defaultValue
protected String
id
protected String
label
protected Map<String,String>
properties
protected FormType
type
protected List<FormFieldValidationConstraint>
validationConstraints
protected TypedValue
value
-
Constructor Summary
Constructors Constructor Description FormFieldImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getDefaultValue()
String
getId()
String
getLabel()
Map<String,String>
getProperties()
FormType
getType()
String
getTypeName()
List<FormFieldValidationConstraint>
getValidationConstraints()
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(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:
getTypeName
in interfaceFormField
- Returns:
- the name of the type of this form field
-
setType
public void setType(FormType type)
-
getDefaultValue
public Object getDefaultValue()
- Specified by:
getDefaultValue
in 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:
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.
-
getValidationConstraints
public List<FormFieldValidationConstraint> getValidationConstraints()
- Specified by:
getValidationConstraints
in interfaceFormField
- Returns:
- a list of
ValidationConstraints
.
-
setValidationConstraints
public void setValidationConstraints(List<FormFieldValidationConstraint> validationConstraints)
-
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)
-
-