Package org.apache.ofbiz.widget.model
Class ModelFormFieldBuilder
java.lang.Object
org.apache.ofbiz.widget.model.ModelFormFieldBuilder
A
ModelFormField
builder.-
Field Summary
Modifier and TypeFieldDescription -
Constructor Summary
ConstructorDescriptionModelFormFieldBuilder
(ModelFormField modelFormField) ModelFormFieldBuilder
(Element fieldElement, ModelForm modelForm, ModelReader entityModelReader, DispatchContext dispatchContext) XML Constructor -
Method Summary
Modifier and TypeMethodDescriptionaddOnChangeUpdateArea
(ModelForm.UpdateArea onChangeUpdateArea) Add on change update area model form field builder.*addOnClickUpdateArea
(ModelForm.UpdateArea onClickUpdateArea) Add on click update area model form field builder.*build()
Build model form field.*Gets action.*Gets attribute name.*Gets condition group.*Gets disabled.*boolean
Gets encode output.*Gets entity name.*Gets entry acsr.*getEvent()
Gets event.*Gets field info.*Gets field name.*Gets field type.*Gets header link.*Gets header link style.*Gets id name.*Gets ignore when.*FlexibleMapAccessor<Map<String,
? extends Object>> Gets map acsr.*Gets model form.*getName()
Gets name.*Gets on change update areas.*Gets on click update areas.*Gets parameter name.*Gets parent form name.*Gets position.*Gets red when.*Gets required field.*Gets required field style.*boolean
Gets separate column.*Gets service name.*Gets sort field.*Gets sort field asc style.*Gets sort field desc style.*Gets sort field help text.*Gets sort field style.*Gets tabindex.*getTitle()
Gets title.*Gets title area style.*Gets title style.*Gets tooltip.*Gets tooltip style.*Gets use when.*Gets widget area style.*Gets widget style.*boolean
induceFieldInfoFromEntityField
(ModelEntity modelEntity, ModelField modelField, String defaultFieldType) Induce field info from entity field boolean.boolean
induceFieldInfoFromServiceParam
(ModelService modelService, ModelParam modelParam, String defaultFieldType) Induce field info from service param boolean.void
Merge override model form field.Sets action.*setAttributeName
(String attributeName) Sets attribute name.*setConditionGroup
(String conditionGroup) Sets condition group.*setEncodeOutput
(boolean encodeOutput) Sets encode output.*setEntityName
(String entityName) Sets entity name.*setEntryName
(String entryName) Sets entry name.*Sets event.*setFieldInfo
(FieldInfo fieldInfo) Sets field info.*setFieldName
(String fieldName) Sets field name.*setFieldType
(String fieldType) Sets field type.*setHeaderLink
(String headerLink) Sets header link.*setHeaderLinkStyle
(String headerLinkStyle) Sets header link style.*Sets id name.*setMapName
(String mapName) Sets map name.*setModelForm
(ModelForm modelForm) Sets model form.*Sets name.*setParameterName
(String parameterName) Sets parameter name.*setParentFormName
(String parentFormName) Sets parent form name.*setPosition
(Integer position) Sets position.*setRedWhen
(String redWhen) Sets red when.*setRequiredField
(Boolean requiredField) Sets required field.*setRequiredFieldStyle
(String requiredFieldStyle) Sets required field style.*setSeparateColumn
(boolean separateColumn) Sets separate column.*setServiceName
(String serviceName) Sets service name.*setSortField
(Boolean sortField) Sets sort field.*setSortFieldAscStyle
(String sortFieldAscStyle) Sets sort field asc style.*setSortFieldDescStyle
(String sortFieldDescStyle) Sets sort field desc style.*setSortFieldHelpText
(String sortFieldHelpText) Sets sort field help text.*setSortFieldStyle
(String sortFieldStyle) Sets sort field style.*setTabindex
(String tabindex) Sets tabindex.*Sets title.*setTitleAreaStyle
(String titleAreaStyle) Sets title area style.*setTitleStyle
(String titleStyle) Sets title style.*setTooltip
(String tooltip) Sets tooltip.*setTooltipStyle
(String tooltipStyle) Sets tooltip style.*setUseWhen
(String useWhen) Sets use when.*setWidgetAreaStyle
(String widgetAreaStyle) Sets widget area style.*setWidgetStyle
(String widgetStyle) Sets widget style.*
-
Field Details
-
NUMERIC_FIELD_TYPES
-
TEXT_FIELD_TYPES
-
TEXT_SIZE_BY_FIELD_TYPES
-
TEXT_MAX_SIZE_BY_FIELD_TYPES
-
DATA_FIELD_TYPES
-
-
Constructor Details
-
ModelFormFieldBuilder
public ModelFormFieldBuilder() -
ModelFormFieldBuilder
public ModelFormFieldBuilder(Element fieldElement, ModelForm modelForm, ModelReader entityModelReader, DispatchContext dispatchContext) XML Constructor -
ModelFormFieldBuilder
-
ModelFormFieldBuilder
-
-
Method Details
-
addOnChangeUpdateArea
Add on change update area model form field builder.*- Parameters:
onChangeUpdateArea
- the on change update area- Returns:
- the model form field builder
-
addOnClickUpdateArea
Add on click update area model form field builder.*- Parameters:
onClickUpdateArea
- the on click update area- Returns:
- the model form field builder
-
build
Build model form field.*- Returns:
- the model form field
-
getAction
Gets action.*- Returns:
- the action
-
getAttributeName
Gets attribute name.*- Returns:
- the attribute name
-
getEncodeOutput
public boolean getEncodeOutput()Gets encode output.*- Returns:
- the encode output
-
getEntityName
Gets entity name.*- Returns:
- the entity name
-
getEntryAcsr
Gets entry acsr.*- Returns:
- the entry acsr
-
getEvent
Gets event.*- Returns:
- the event
-
getFieldInfo
Gets field info.*- Returns:
- the field info
-
getFieldName
Gets field name.*- Returns:
- the field name
-
getFieldType
Gets field type.*- Returns:
- the field type
-
getHeaderLink
Gets header link.*- Returns:
- the header link
-
getHeaderLinkStyle
Gets header link style.*- Returns:
- the header link style
-
getIdName
Gets id name.*- Returns:
- the id name
-
getMapAcsr
Gets map acsr.*- Returns:
- the map acsr
-
getModelForm
Gets model form.*- Returns:
- the model form
-
getName
Gets name.*- Returns:
- the name
-
getOnChangeUpdateAreas
Gets on change update areas.*- Returns:
- the on change update areas
-
getOnClickUpdateAreas
Gets on click update areas.*- Returns:
- the on click update areas
-
getParameterName
Gets parameter name.*- Returns:
- the parameter name
-
getPosition
Gets position.*- Returns:
- the position
-
getRedWhen
Gets red when.*- Returns:
- the red when
-
getRequiredField
Gets required field.*- Returns:
- the required field
-
getRequiredFieldStyle
Gets required field style.*- Returns:
- the required field style
-
getSeparateColumn
public boolean getSeparateColumn()Gets separate column.*- Returns:
- the separate column
-
getServiceName
Gets service name.*- Returns:
- the service name
-
getSortField
Gets sort field.*- Returns:
- the sort field
-
getSortFieldAscStyle
Gets sort field asc style.*- Returns:
- the sort field asc style
-
getSortFieldDescStyle
Gets sort field desc style.*- Returns:
- the sort field desc style
-
getSortFieldHelpText
Gets sort field help text.*- Returns:
- the sort field help text
-
getSortFieldStyle
Gets sort field style.*- Returns:
- the sort field style
-
getTitle
Gets title.*- Returns:
- the title
-
getTitleAreaStyle
Gets title area style.*- Returns:
- the title area style
-
getTitleStyle
Gets title style.*- Returns:
- the title style
-
getTooltip
Gets tooltip.*- Returns:
- the tooltip
-
getTooltipStyle
Gets tooltip style.*- Returns:
- the tooltip style
-
getUseWhen
Gets use when.*- Returns:
- the use when
-
getIgnoreWhen
Gets ignore when.*- Returns:
- the ignore when
-
getWidgetAreaStyle
Gets widget area style.*- Returns:
- the widget area style
-
getWidgetStyle
Gets widget style.*- Returns:
- the widget style
-
getParentFormName
Gets parent form name.*- Returns:
- the parent form name
-
getTabindex
Gets tabindex.*- Returns:
- the tabindex
-
getConditionGroup
Gets condition group.*- Returns:
- the condition group
-
getDisabledSpec
Gets disabled.*- Returns:
- the disabled
-
induceFieldInfoFromEntityField
public boolean induceFieldInfoFromEntityField(ModelEntity modelEntity, ModelField modelField, String defaultFieldType) Induce field info from entity field boolean.- Parameters:
modelEntity
- the model entitymodelField
- the model fielddefaultFieldType
- the default field type- Returns:
- the boolean
-
induceFieldInfoFromServiceParam
public boolean induceFieldInfoFromServiceParam(ModelService modelService, ModelParam modelParam, String defaultFieldType) Induce field info from service param boolean.- Parameters:
modelService
- the model servicemodelParam
- the model paramdefaultFieldType
- the default field type- Returns:
- the boolean
-
mergeOverrideModelFormField
Merge override model form field.- Parameters:
builder
- the builder
-
setAction
Sets action.*- Parameters:
action
- the action- Returns:
- the action
-
setAttributeName
Sets attribute name.*- Parameters:
attributeName
- the attribute name- Returns:
- the attribute name
-
setEncodeOutput
Sets encode output.*- Parameters:
encodeOutput
- the encode output- Returns:
- the encode output
-
setEntityName
Sets entity name.*- Parameters:
entityName
- the entity name- Returns:
- the entity name
-
setEntryName
Sets entry name.*- Parameters:
entryName
- the entry name- Returns:
- the entry name
-
setEvent
Sets event.*- Parameters:
event
- the event- Returns:
- the event
-
setFieldInfo
Sets field info.*- Parameters:
fieldInfo
- the field info- Returns:
- the field info
-
setFieldName
Sets field name.*- Parameters:
fieldName
- the field name- Returns:
- the field name
-
setFieldType
Sets field type.*- Parameters:
fieldType
- the field type- Returns:
- the field type
-
setHeaderLink
Sets header link.*- Parameters:
headerLink
- the header link- Returns:
- the header link
-
setHeaderLinkStyle
Sets header link style.*- Parameters:
headerLinkStyle
- the header link style- Returns:
- the header link style
-
setIdName
Sets id name.*- Parameters:
idName
- the id name- Returns:
- the id name
-
setMapName
Sets map name.*- Parameters:
mapName
- the map name- Returns:
- the map name
-
setModelForm
Sets model form.*- Parameters:
modelForm
- the model form- Returns:
- the model form
-
setName
Sets name.*- Parameters:
name
- the name- Returns:
- the name
-
setParameterName
Sets parameter name.*- Parameters:
parameterName
- the parameter name- Returns:
- the parameter name
-
setPosition
Sets position.*- Parameters:
position
- the position- Returns:
- the position
-
setRedWhen
Sets red when.*- Parameters:
redWhen
- the red when- Returns:
- the red when
-
setRequiredField
Sets required field.*- Parameters:
requiredField
- the required field- Returns:
- the required field
-
setRequiredFieldStyle
Sets required field style.*- Parameters:
requiredFieldStyle
- the required field style- Returns:
- the required field style
-
setSeparateColumn
Sets separate column.*- Parameters:
separateColumn
- the separate column- Returns:
- the separate column
-
setServiceName
Sets service name.*- Parameters:
serviceName
- the service name- Returns:
- the service name
-
setSortField
Sets sort field.*- Parameters:
sortField
- the sort field- Returns:
- the sort field
-
setSortFieldAscStyle
Sets sort field asc style.*- Parameters:
sortFieldAscStyle
- the sort field asc style- Returns:
- the sort field asc style
-
setSortFieldDescStyle
Sets sort field desc style.*- Parameters:
sortFieldDescStyle
- the sort field desc style- Returns:
- the sort field desc style
-
setSortFieldHelpText
Sets sort field help text.*- Parameters:
sortFieldHelpText
- the sort field help text- Returns:
- the sort field help text
-
setSortFieldStyle
Sets sort field style.*- Parameters:
sortFieldStyle
- the sort field style- Returns:
- the sort field style
-
setTitle
Sets title.*- Parameters:
title
- the title- Returns:
- the title
-
setTitleAreaStyle
Sets title area style.*- Parameters:
titleAreaStyle
- the title area style- Returns:
- the title area style
-
setTitleStyle
Sets title style.*- Parameters:
titleStyle
- the title style- Returns:
- the title style
-
setTooltip
Sets tooltip.*- Parameters:
tooltip
- the tooltip- Returns:
- the tooltip
-
setTooltipStyle
Sets tooltip style.*- Parameters:
tooltipStyle
- the tooltip style- Returns:
- the tooltip style
-
setUseWhen
Sets use when.*- Parameters:
useWhen
- the use when- Returns:
- the use when
-
setWidgetAreaStyle
Sets widget area style.*- Parameters:
widgetAreaStyle
- the widget area style- Returns:
- the widget area style
-
setWidgetStyle
Sets widget style.*- Parameters:
widgetStyle
- the widget style- Returns:
- the widget style
-
setParentFormName
Sets parent form name.*- Parameters:
parentFormName
- the parent form name- Returns:
- the parent form name
-
setTabindex
Sets tabindex.*- Parameters:
tabindex
- the tabindex- Returns:
- the tabindex
-
setConditionGroup
Sets condition group.*- Parameters:
conditionGroup
- the condition group- Returns:
- the condition group
-