Class AbstractRenderFormDelegate
- java.lang.Object
-
- org.camunda.bpm.engine.impl.form.engine.AbstractRenderFormDelegate
-
public abstract class AbstractRenderFormDelegate extends java.lang.Object
- Author:
- Askar Akhmerov
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
BUTTON_BUTTON_TYPE
protected static java.lang.String
BUTTON_DEFAULT_CLASS
protected static java.lang.String
BUTTON_ELEMENT
protected static java.lang.String
CALENDAR_GLYPHICON
protected static java.lang.String
CAM_SCRIPT_ATTRIBUTE
protected static java.lang.String
CAM_VARIABLE_NAME_ATTRIBUTE
protected static java.lang.String
CAM_VARIABLE_TYPE_ATTRIBUTE
protected static java.lang.String
CHECKBOX_INPUT_TYPE
protected static java.lang.String
CLASS_ATTRIBUTE
protected static java.lang.String
DATE_ERROR_EXPRESSION
protected static java.lang.String
DATE_ERROR_TYPE
protected static java.lang.String
DATE_FIELD_OPENED_ATTRIBUTE
protected static java.lang.String
DATE_FORMAT
protected static java.lang.String
DATEPICKER_POPUP_ATTRIBUTE
protected static java.lang.String
DIRTY_EXPRESSION
protected static java.lang.String
DIV_ELEMENT
protected static java.lang.String
ERROR_EXPRESSION
protected static java.lang.String
FOR_ATTRIBUTE
protected static java.lang.String
FORM_CONTROL_CLASS
protected static java.lang.String
FORM_ELEMENT
protected static java.lang.String
FORM_ELEMENT_SELECTOR
protected static java.lang.String
FORM_GROUP_CLASS
protected static java.lang.String
FORM_ROLE
protected static java.lang.String
GENERATED_FORM_NAME
protected static java.lang.String
HAS_ERROR_CLASS
protected static java.lang.String
HELP_BLOCK_CLASS
protected static java.lang.String
I_ELEMENT
protected static java.lang.String
INPUT_ELEMENT
protected static java.lang.String
INPUT_GROUP_BTN_CLASS
protected static java.lang.String
INPUT_GROUP_CLASS
protected static java.lang.String
INVALID_DATE_FIELD_MESSAGE
protected static java.lang.String
INVALID_EXPRESSION
protected static java.lang.String
IS_OPEN_ATTRIBUTE
protected static java.lang.String
LABEL_ELEMENT
protected static java.lang.String
NAME_ATTRIBUTE
protected static java.lang.String
NG_CLICK_ATTRIBUTE
protected static java.lang.String
NG_IF_ATTRIBUTE
protected static java.lang.String
NG_SHOW_ATTRIBUTE
protected static java.lang.String
OPEN_DATEPICKER_FUNCTION_SNIPPET
protected static java.lang.String
OPEN_DATEPICKER_SNIPPET
protected static java.lang.String
OPTION_ELEMENT
protected static java.lang.String
REQUIRED_ERROR_EXPRESSION
protected static java.lang.String
REQUIRED_ERROR_TYPE
protected static java.lang.String
REQUIRED_FIELD_MESSAGE
protected static java.lang.String
ROLE_ATTRIBUTE
protected static java.lang.String
SCRIPT_ELEMENT
protected static java.lang.String
SELECT_ELEMENT
protected static java.lang.String
SELECTED_ATTRIBUTE
protected static java.lang.String
SPAN_ELEMENT
protected static java.lang.String
TEXT_FORM_SCRIPT_TYPE
protected static java.lang.String
TEXT_INPUT_TYPE
protected static java.lang.String
TYPE_ATTRIBUTE
protected static java.lang.String
TYPE_ERROR_EXPRESSION
protected static java.lang.String
TYPE_FIELD_MESSAGE
protected static java.lang.String
VALUE_ATTRIBUTE
-
Constructor Summary
Constructors Constructor Description AbstractRenderFormDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addCommonFormFieldAttributes(FormField formField, HtmlElementWriter formControl)
protected HtmlElementWriter
createInputField(FormField formField)
protected boolean
isBoolean(FormField formField)
protected boolean
isDate(FormField formField)
protected boolean
isEnum(FormField formField)
protected boolean
isReadOnly(FormField formField)
protected void
renderDatePicker(FormField formField, HtmlDocumentBuilder documentBuilder)
protected java.lang.String
renderFormData(FormData formData)
protected void
renderFormField(FormField formField, HtmlDocumentBuilder documentBuilder)
protected void
renderInputField(FormField formField, HtmlDocumentBuilder documentBuilder)
protected void
renderInvalidDateMessage(FormField formField, HtmlDocumentBuilder documentBuilder)
protected void
renderInvalidMessageElement(FormField formField, HtmlDocumentBuilder documentBuilder)
protected void
renderInvalidTypeMessage(FormField formField, HtmlDocumentBuilder documentBuilder)
protected void
renderInvalidValueMessage(FormField formField, HtmlDocumentBuilder documentBuilder)
protected void
renderSelectBox(FormField formField, HtmlDocumentBuilder documentBuilder)
protected void
renderSelectOptions(FormField formField, HtmlDocumentBuilder documentBuilder)
-
-
-
Field Detail
-
FORM_ELEMENT
protected static final java.lang.String FORM_ELEMENT
- See Also:
- Constant Field Values
-
DIV_ELEMENT
protected static final java.lang.String DIV_ELEMENT
- See Also:
- Constant Field Values
-
SPAN_ELEMENT
protected static final java.lang.String SPAN_ELEMENT
- See Also:
- Constant Field Values
-
LABEL_ELEMENT
protected static final java.lang.String LABEL_ELEMENT
- See Also:
- Constant Field Values
-
INPUT_ELEMENT
protected static final java.lang.String INPUT_ELEMENT
- See Also:
- Constant Field Values
-
BUTTON_ELEMENT
protected static final java.lang.String BUTTON_ELEMENT
- See Also:
- Constant Field Values
-
SELECT_ELEMENT
protected static final java.lang.String SELECT_ELEMENT
- See Also:
- Constant Field Values
-
OPTION_ELEMENT
protected static final java.lang.String OPTION_ELEMENT
- See Also:
- Constant Field Values
-
I_ELEMENT
protected static final java.lang.String I_ELEMENT
- See Also:
- Constant Field Values
-
SCRIPT_ELEMENT
protected static final java.lang.String SCRIPT_ELEMENT
- See Also:
- Constant Field Values
-
NAME_ATTRIBUTE
protected static final java.lang.String NAME_ATTRIBUTE
- See Also:
- Constant Field Values
-
CLASS_ATTRIBUTE
protected static final java.lang.String CLASS_ATTRIBUTE
- See Also:
- Constant Field Values
-
ROLE_ATTRIBUTE
protected static final java.lang.String ROLE_ATTRIBUTE
- See Also:
- Constant Field Values
-
FOR_ATTRIBUTE
protected static final java.lang.String FOR_ATTRIBUTE
- See Also:
- Constant Field Values
-
VALUE_ATTRIBUTE
protected static final java.lang.String VALUE_ATTRIBUTE
- See Also:
- Constant Field Values
-
TYPE_ATTRIBUTE
protected static final java.lang.String TYPE_ATTRIBUTE
- See Also:
- Constant Field Values
-
SELECTED_ATTRIBUTE
protected static final java.lang.String SELECTED_ATTRIBUTE
- See Also:
- Constant Field Values
-
IS_OPEN_ATTRIBUTE
protected static final java.lang.String IS_OPEN_ATTRIBUTE
- See Also:
- Constant Field Values
-
DATEPICKER_POPUP_ATTRIBUTE
protected static final java.lang.String DATEPICKER_POPUP_ATTRIBUTE
- See Also:
- Constant Field Values
-
CAM_VARIABLE_TYPE_ATTRIBUTE
protected static final java.lang.String CAM_VARIABLE_TYPE_ATTRIBUTE
- See Also:
- Constant Field Values
-
CAM_VARIABLE_NAME_ATTRIBUTE
protected static final java.lang.String CAM_VARIABLE_NAME_ATTRIBUTE
- See Also:
- Constant Field Values
-
CAM_SCRIPT_ATTRIBUTE
protected static final java.lang.String CAM_SCRIPT_ATTRIBUTE
- See Also:
- Constant Field Values
-
NG_CLICK_ATTRIBUTE
protected static final java.lang.String NG_CLICK_ATTRIBUTE
- See Also:
- Constant Field Values
-
NG_IF_ATTRIBUTE
protected static final java.lang.String NG_IF_ATTRIBUTE
- See Also:
- Constant Field Values
-
NG_SHOW_ATTRIBUTE
protected static final java.lang.String NG_SHOW_ATTRIBUTE
- See Also:
- Constant Field Values
-
FORM_GROUP_CLASS
protected static final java.lang.String FORM_GROUP_CLASS
- See Also:
- Constant Field Values
-
FORM_CONTROL_CLASS
protected static final java.lang.String FORM_CONTROL_CLASS
- See Also:
- Constant Field Values
-
INPUT_GROUP_CLASS
protected static final java.lang.String INPUT_GROUP_CLASS
- See Also:
- Constant Field Values
-
INPUT_GROUP_BTN_CLASS
protected static final java.lang.String INPUT_GROUP_BTN_CLASS
- See Also:
- Constant Field Values
-
BUTTON_DEFAULT_CLASS
protected static final java.lang.String BUTTON_DEFAULT_CLASS
- See Also:
- Constant Field Values
-
HAS_ERROR_CLASS
protected static final java.lang.String HAS_ERROR_CLASS
- See Also:
- Constant Field Values
-
HELP_BLOCK_CLASS
protected static final java.lang.String HELP_BLOCK_CLASS
- See Also:
- Constant Field Values
-
TEXT_INPUT_TYPE
protected static final java.lang.String TEXT_INPUT_TYPE
- See Also:
- Constant Field Values
-
CHECKBOX_INPUT_TYPE
protected static final java.lang.String CHECKBOX_INPUT_TYPE
- See Also:
- Constant Field Values
-
BUTTON_BUTTON_TYPE
protected static final java.lang.String BUTTON_BUTTON_TYPE
- See Also:
- Constant Field Values
-
TEXT_FORM_SCRIPT_TYPE
protected static final java.lang.String TEXT_FORM_SCRIPT_TYPE
- See Also:
- Constant Field Values
-
CALENDAR_GLYPHICON
protected static final java.lang.String CALENDAR_GLYPHICON
- See Also:
- Constant Field Values
-
GENERATED_FORM_NAME
protected static final java.lang.String GENERATED_FORM_NAME
- See Also:
- Constant Field Values
-
FORM_ROLE
protected static final java.lang.String FORM_ROLE
- See Also:
- Constant Field Values
-
REQUIRED_ERROR_TYPE
protected static final java.lang.String REQUIRED_ERROR_TYPE
- See Also:
- Constant Field Values
-
DATE_ERROR_TYPE
protected static final java.lang.String DATE_ERROR_TYPE
- See Also:
- Constant Field Values
-
FORM_ELEMENT_SELECTOR
protected static final java.lang.String FORM_ELEMENT_SELECTOR
- See Also:
- Constant Field Values
-
INVALID_EXPRESSION
protected static final java.lang.String INVALID_EXPRESSION
- See Also:
- Constant Field Values
-
DIRTY_EXPRESSION
protected static final java.lang.String DIRTY_EXPRESSION
- See Also:
- Constant Field Values
-
ERROR_EXPRESSION
protected static final java.lang.String ERROR_EXPRESSION
- See Also:
- Constant Field Values
-
DATE_ERROR_EXPRESSION
protected static final java.lang.String DATE_ERROR_EXPRESSION
- See Also:
- Constant Field Values
-
REQUIRED_ERROR_EXPRESSION
protected static final java.lang.String REQUIRED_ERROR_EXPRESSION
- See Also:
- Constant Field Values
-
TYPE_ERROR_EXPRESSION
protected static final java.lang.String TYPE_ERROR_EXPRESSION
- See Also:
- Constant Field Values
-
DATE_FIELD_OPENED_ATTRIBUTE
protected static final java.lang.String DATE_FIELD_OPENED_ATTRIBUTE
- See Also:
- Constant Field Values
-
OPEN_DATEPICKER_SNIPPET
protected static final java.lang.String OPEN_DATEPICKER_SNIPPET
- See Also:
- Constant Field Values
-
OPEN_DATEPICKER_FUNCTION_SNIPPET
protected static final java.lang.String OPEN_DATEPICKER_FUNCTION_SNIPPET
- See Also:
- Constant Field Values
-
DATE_FORMAT
protected static final java.lang.String DATE_FORMAT
- See Also:
- Constant Field Values
-
REQUIRED_FIELD_MESSAGE
protected static final java.lang.String REQUIRED_FIELD_MESSAGE
- See Also:
- Constant Field Values
-
TYPE_FIELD_MESSAGE
protected static final java.lang.String TYPE_FIELD_MESSAGE
- See Also:
- Constant Field Values
-
INVALID_DATE_FIELD_MESSAGE
protected static final java.lang.String INVALID_DATE_FIELD_MESSAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
renderFormData
protected java.lang.String renderFormData(FormData formData)
-
renderFormField
protected void renderFormField(FormField formField, HtmlDocumentBuilder documentBuilder)
-
createInputField
protected HtmlElementWriter createInputField(FormField formField)
-
renderDatePicker
protected void renderDatePicker(FormField formField, HtmlDocumentBuilder documentBuilder)
-
renderInputField
protected void renderInputField(FormField formField, HtmlDocumentBuilder documentBuilder)
-
renderSelectBox
protected void renderSelectBox(FormField formField, HtmlDocumentBuilder documentBuilder)
-
renderSelectOptions
protected void renderSelectOptions(FormField formField, HtmlDocumentBuilder documentBuilder)
-
renderInvalidMessageElement
protected void renderInvalidMessageElement(FormField formField, HtmlDocumentBuilder documentBuilder)
-
renderInvalidValueMessage
protected void renderInvalidValueMessage(FormField formField, HtmlDocumentBuilder documentBuilder)
-
renderInvalidTypeMessage
protected void renderInvalidTypeMessage(FormField formField, HtmlDocumentBuilder documentBuilder)
-
renderInvalidDateMessage
protected void renderInvalidDateMessage(FormField formField, HtmlDocumentBuilder documentBuilder)
-
addCommonFormFieldAttributes
protected void addCommonFormFieldAttributes(FormField formField, HtmlElementWriter formControl)
-
isEnum
protected boolean isEnum(FormField formField)
-
isDate
protected boolean isDate(FormField formField)
-
isBoolean
protected boolean isBoolean(FormField formField)
-
isReadOnly
protected boolean isReadOnly(FormField formField)
-
-