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 java.lang.Object
defaultValue
protected java.lang.String
id
protected java.lang.String
label
protected java.util.Map<java.lang.String,java.lang.String>
properties
protected FormType
type
protected java.util.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 java.lang.Object
getDefaultValue()
java.lang.String
getId()
java.lang.String
getLabel()
java.util.Map<java.lang.String,java.lang.String>
getProperties()
FormType
getType()
java.lang.String
getTypeName()
java.util.List<FormFieldValidationConstraint>
getValidationConstraints()
TypedValue
getValue()
boolean
isBusinessKey()
void
setBusinessKey(boolean businessKey)
void
setDefaultValue(java.lang.Object defaultValue)
void
setId(java.lang.String id)
void
setLabel(java.lang.String label)
void
setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
void
setType(FormType type)
void
setValidationConstraints(java.util.List<FormFieldValidationConstraint> validationConstraints)
void
setValue(TypedValue value)
-
-
-
Field Detail
-
businessKey
protected boolean businessKey
-
id
protected java.lang.String id
-
label
protected java.lang.String label
-
type
protected FormType type
-
defaultValue
protected java.lang.Object defaultValue
-
value
protected TypedValue value
-
validationConstraints
protected java.util.List<FormFieldValidationConstraint> validationConstraints
-
properties
protected java.util.Map<java.lang.String,java.lang.String> properties
-
-
Method Detail
-
getId
public java.lang.String getId()
-
setId
public void setId(java.lang.String id)
-
getLabel
public java.lang.String getLabel()
-
setLabel
public void setLabel(java.lang.String label)
-
getType
public FormType getType()
-
getTypeName
public java.lang.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 java.lang.Object getDefaultValue()
- Specified by:
getDefaultValue
in interfaceFormField
- Returns:
- the default value for this form field.
-
getValue
public TypedValue getValue()
-
setDefaultValue
public void setDefaultValue(java.lang.Object defaultValue)
-
setValue
public void setValue(TypedValue value)
-
getProperties
public java.util.Map<java.lang.String,java.lang.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.
-
setProperties
public void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
-
getValidationConstraints
public java.util.List<FormFieldValidationConstraint> getValidationConstraints()
- Specified by:
getValidationConstraints
in interfaceFormField
- Returns:
- a list of
ValidationConstraints
.
-
setValidationConstraints
public void setValidationConstraints(java.util.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)
-
-