Package de.xima.fc.form.common.models
Class XFormRenderConfig
- java.lang.Object
-
- de.xima.fc.form.common.models.XFormRenderConfig
-
- All Implemented Interfaces:
IXFormRenderConfig
,Serializable
- Direct Known Subclasses:
XFormConfig
public class XFormRenderConfig extends Object implements IXFormRenderConfig
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XFormRenderConfig()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.xima.fc.form.common.models.IXFormRenderConfig
addValidationError, addXFormRessource, isDemoAccount, setDemoAccount
-
-
-
-
Method Detail
-
getFormAction
public String getFormAction()
- Specified by:
getFormAction
in interfaceIXFormRenderConfig
-
setFormAction
public void setFormAction(String formAction)
- Specified by:
setFormAction
in interfaceIXFormRenderConfig
-
getBaseIncludeUrl
public String getBaseIncludeUrl()
- Specified by:
getBaseIncludeUrl
in interfaceIXFormRenderConfig
-
setBaseIncludeUrl
public void setBaseIncludeUrl(String baseIncludeUrl)
- Specified by:
setBaseIncludeUrl
in interfaceIXFormRenderConfig
-
isFormOnly
public boolean isFormOnly()
- Specified by:
isFormOnly
in interfaceIXFormRenderConfig
-
setFormOnly
public void setFormOnly(boolean formOnly)
- Specified by:
setFormOnly
in interfaceIXFormRenderConfig
-
getTitle
public String getTitle()
- Specified by:
getTitle
in interfaceIXFormRenderConfig
-
setTitle
public void setTitle(String title)
- Specified by:
setTitle
in interfaceIXFormRenderConfig
-
isSkipPlaceholder
public boolean isSkipPlaceholder()
- Specified by:
isSkipPlaceholder
in interfaceIXFormRenderConfig
-
setSkipPlaceholder
public void setSkipPlaceholder(boolean skipPlaceholder)
- Specified by:
setSkipPlaceholder
in interfaceIXFormRenderConfig
-
isPreview
public boolean isPreview()
- Specified by:
isPreview
in interfaceIXFormRenderConfig
-
setPreview
public void setPreview(boolean isPreview)
- Specified by:
setPreview
in interfaceIXFormRenderConfig
-
getLang
public String getLang()
- Specified by:
getLang
in interfaceIXFormRenderConfig
-
setLang
public void setLang(String lang)
- Specified by:
setLang
in interfaceIXFormRenderConfig
-
getBotFieldName
public String getBotFieldName()
- Specified by:
getBotFieldName
in interfaceIXFormRenderConfig
- Returns:
- The name of the invisible bot field used as a honey trap to detect bots. When a form is submitted where this field has a value, the form submission is rejected.
-
setBotFieldName
public void setBotFieldName(String botFieldName)
- Specified by:
setBotFieldName
in interfaceIXFormRenderConfig
- Parameters:
botFieldName
- The name of the invisible bot field used as a honey trap to detect bots. When a form is submitted where this field has a value, the form submission is rejected.
-
getBotFieldAutocomplete
public String getBotFieldAutocomplete()
- Specified by:
getBotFieldAutocomplete
in interfaceIXFormRenderConfig
- Returns:
- The value for the
autocomplete
attribute of the invisiblebot field
. When null, empty, or blank, theautocomplete
property is not set on the bot field.
-
setBotFieldAutocomplete
public void setBotFieldAutocomplete(String botFieldAutocomplete)
- Specified by:
setBotFieldAutocomplete
in interfaceIXFormRenderConfig
- Parameters:
botFieldAutocomplete
- The value for theautocomplete
attribute of the invisiblebot field
. When null, empty, or blank, theautocomplete
property is not set on the bot field.
-
getxItemRenderConditions
public XItemConditionsWrapper getxItemRenderConditions()
- Specified by:
getxItemRenderConditions
in interfaceIXFormRenderConfig
-
setXItemRenderConditions
public void setXItemRenderConditions(XItemConditionsWrapper xItemRenderConditions)
- Specified by:
setXItemRenderConditions
in interfaceIXFormRenderConfig
-
getDataSourceProvider
public IFD2DataSourceProvider getDataSourceProvider()
- Specified by:
getDataSourceProvider
in interfaceIXFormRenderConfig
-
setDataSourceProvider
public void setDataSourceProvider(IFD2DataSourceProvider dataSourceProvider)
Description copied from interface:IXFormRenderConfig
Setter des dataSourceProvider- Specified by:
setDataSourceProvider
in interfaceIXFormRenderConfig
- Parameters:
dataSourceProvider
-IFD2DataSourceProvider
der zu setzende dataSourceProvider
-
setLanguageProvider
public void setLanguageProvider(IFD2LanguageProvider languageProvider)
Description copied from interface:IXFormRenderConfig
Setter des languageProvider- Specified by:
setLanguageProvider
in interfaceIXFormRenderConfig
- Parameters:
languageProvider
-IFD2LanguageProvider
der zu setzende languageProvider
-
getLanguageProvider
public IFD2LanguageProvider getLanguageProvider()
Description copied from interface:IXFormRenderConfig
Getter für languageProvider- Specified by:
getLanguageProvider
in interfaceIXFormRenderConfig
- Returns:
IFD2LanguageProvider
des languageProvider
-
getLicenseDataProvider
public IFD2LicenseDataProvider getLicenseDataProvider()
- Specified by:
getLicenseDataProvider
in interfaceIXFormRenderConfig
-
setLicenseDataProvider
public void setLicenseDataProvider(IFD2LicenseDataProvider licenseDataProvider)
- Specified by:
setLicenseDataProvider
in interfaceIXFormRenderConfig
-
getI18N
public com.alibaba.fastjson.JSONObject getI18N()
- Specified by:
getI18N
in interfaceIXFormRenderConfig
-
getI18NValue
public String getI18NValue(String key)
- Specified by:
getI18NValue
in interfaceIXFormRenderConfig
-
isUsejq
public boolean isUsejq()
- Specified by:
isUsejq
in interfaceIXFormRenderConfig
-
setUsejq
public void setUsejq(boolean usejq)
- Specified by:
setUsejq
in interfaceIXFormRenderConfig
-
isUseui
public boolean isUseui()
- Specified by:
isUseui
in interfaceIXFormRenderConfig
-
setUseui
public void setUseui(boolean useui)
- Specified by:
setUseui
in interfaceIXFormRenderConfig
-
isUsebs
public boolean isUsebs()
- Specified by:
isUsebs
in interfaceIXFormRenderConfig
-
setUsebs
public void setUsebs(boolean usebs)
- Specified by:
setUsebs
in interfaceIXFormRenderConfig
-
isUsecss
public boolean isUsecss()
- Specified by:
isUsecss
in interfaceIXFormRenderConfig
-
setUsecss
public void setUsecss(boolean usecss)
- Specified by:
setUsecss
in interfaceIXFormRenderConfig
-
isForceInline
public boolean isForceInline()
- Specified by:
isForceInline
in interfaceIXFormRenderConfig
-
setForceInline
public void setForceInline(boolean forceInline)
- Specified by:
setForceInline
in interfaceIXFormRenderConfig
-
getMetaDataProvider
public IFD2MetaDataProvider getMetaDataProvider()
- Specified by:
getMetaDataProvider
in interfaceIXFormRenderConfig
-
setMetaDataProvider
public void setMetaDataProvider(IFD2MetaDataProvider metaDataProvider)
- Specified by:
setMetaDataProvider
in interfaceIXFormRenderConfig
-
getReplacerProvider
public IFD2ReplacerProvider getReplacerProvider()
- Specified by:
getReplacerProvider
in interfaceIXFormRenderConfig
-
setReplacerProvider
public void setReplacerProvider(IFD2ReplacerProvider replacerProvider)
- Specified by:
setReplacerProvider
in interfaceIXFormRenderConfig
-
getStatusProvider
public IFD2StatusProvider getStatusProvider()
- Specified by:
getStatusProvider
in interfaceIXFormRenderConfig
-
setStatusProvider
public void setStatusProvider(IFD2StatusProvider statusProvider)
- Specified by:
setStatusProvider
in interfaceIXFormRenderConfig
-
getUserGroupProvider
public IFD2UserGroupProvider getUserGroupProvider()
- Specified by:
getUserGroupProvider
in interfaceIXFormRenderConfig
-
setUserGroupProvider
public void setUserGroupProvider(IFD2UserGroupProvider userGroupProvider)
- Specified by:
setUserGroupProvider
in interfaceIXFormRenderConfig
-
getVRulesProvider
public IFD2VRulesProvider getVRulesProvider()
- Specified by:
getVRulesProvider
in interfaceIXFormRenderConfig
-
setVRulesProvider
public void setVRulesProvider(IFD2VRulesProvider vrulesProvider)
- Specified by:
setVRulesProvider
in interfaceIXFormRenderConfig
-
getAttachmentDownloadURL
public String getAttachmentDownloadURL()
- Specified by:
getAttachmentDownloadURL
in interfaceIXFormRenderConfig
-
setAttachmentDownloadURL
public void setAttachmentDownloadURL(String attachmentDownloadURL)
- Specified by:
setAttachmentDownloadURL
in interfaceIXFormRenderConfig
-
getAppointmentProvider
public IFD2AppointmentProvider getAppointmentProvider()
- Specified by:
getAppointmentProvider
in interfaceIXFormRenderConfig
- Returns:
- The current provider for accessing appointments and appointment templates.
-
setAppointmentProvider
public void setAppointmentProvider(IFD2AppointmentProvider appoinmentProvider)
- Specified by:
setAppointmentProvider
in interfaceIXFormRenderConfig
- Parameters:
appoinmentProvider
- The provider to use for accessing appointments and appointment templates.
-
getTemplateProvider
public IFD2TemplateProvider getTemplateProvider()
- Specified by:
getTemplateProvider
in interfaceIXFormRenderConfig
-
setTemplateProvider
public void setTemplateProvider(IFD2TemplateProvider templateProvider)
- Specified by:
setTemplateProvider
in interfaceIXFormRenderConfig
-
getAttachmentDeleteURL
public String getAttachmentDeleteURL()
- Specified by:
getAttachmentDeleteURL
in interfaceIXFormRenderConfig
-
setAttachmentDeleteURL
public void setAttachmentDeleteURL(String attachmentDeleteURL)
- Specified by:
setAttachmentDeleteURL
in interfaceIXFormRenderConfig
-
getProjektID
public long getProjektID()
- Specified by:
getProjektID
in interfaceIXFormRenderConfig
-
setProjektID
public void setProjektID(long projektID)
- Specified by:
setProjektID
in interfaceIXFormRenderConfig
-
getCustomFormNodes
public List<com.hp.gagawa.java.Node> getCustomFormNodes()
- Specified by:
getCustomFormNodes
in interfaceIXFormRenderConfig
-
setCustomFormNodes
public void setCustomFormNodes(List<com.hp.gagawa.java.Node> customFormNodes)
- Specified by:
setCustomFormNodes
in interfaceIXFormRenderConfig
-
addCustomFormNode
public void addCustomFormNode(com.hp.gagawa.java.Node customNode)
- Specified by:
addCustomFormNode
in interfaceIXFormRenderConfig
-
getJsIncludes
public LinkedHashMap<String,String> getJsIncludes()
- Specified by:
getJsIncludes
in interfaceIXFormRenderConfig
-
setJsIncludes
public void setJsIncludes(LinkedHashMap<String,String> jsIncludes)
- Specified by:
setJsIncludes
in interfaceIXFormRenderConfig
-
getCssIncludes
public LinkedHashMap<String,String> getCssIncludes()
- Specified by:
getCssIncludes
in interfaceIXFormRenderConfig
-
setCssIncludes
public void setCssIncludes(LinkedHashMap<String,String> cssIncludes)
- Specified by:
setCssIncludes
in interfaceIXFormRenderConfig
-
addValidationError
public void addValidationError(String itemId, String error)
Description copied from interface:IXFormRenderConfig
Adds a server validation message for the given form element. This message is redisplayed in the form in the browser.- Specified by:
addValidationError
in interfaceIXFormRenderConfig
- Parameters:
itemId
- Full ID of a form element, e.g.xi-tf-1
(non-repeated) orxi-tf-1_c_99
(repeated element).error
- Error message to add.
-
getValidationErrors
public Map<String,List<String>> getValidationErrors()
- Specified by:
getValidationErrors
in interfaceIXFormRenderConfig
-
setValidationErrors
public void setValidationErrors(Map<String,List<String>> validationErrors)
- Specified by:
setValidationErrors
in interfaceIXFormRenderConfig
-
getValidationErrors
public List<String> getValidationErrors(String itemId)
- Specified by:
getValidationErrors
in interfaceIXFormRenderConfig
-
getThemeCss
public String getThemeCss()
- Specified by:
getThemeCss
in interfaceIXFormRenderConfig
-
setThemeCss
public void setThemeCss(String themeCss)
- Specified by:
setThemeCss
in interfaceIXFormRenderConfig
-
getXItemProvider
public IFD2XItemProvider getXItemProvider()
- Specified by:
getXItemProvider
in interfaceIXFormRenderConfig
-
setXItemProvider
public void setXItemProvider(IFD2XItemProvider xItemProvider)
- Specified by:
setXItemProvider
in interfaceIXFormRenderConfig
-
isPublish
public boolean isPublish()
- Specified by:
isPublish
in interfaceIXFormRenderConfig
-
setPublish
public void setPublish(boolean isPublish)
- Specified by:
setPublish
in interfaceIXFormRenderConfig
-
isIgnoreRenderConditions
public boolean isIgnoreRenderConditions()
- Specified by:
isIgnoreRenderConditions
in interfaceIXFormRenderConfig
-
setIgnoreRenderConditions
public void setIgnoreRenderConditions(boolean ignoreRenderConditions)
- Specified by:
setIgnoreRenderConditions
in interfaceIXFormRenderConfig
-
isDesignerPreview
public boolean isDesignerPreview()
- Specified by:
isDesignerPreview
in interfaceIXFormRenderConfig
-
setDesignerPreview
public void setDesignerPreview(boolean designerPreview)
- Specified by:
setDesignerPreview
in interfaceIXFormRenderConfig
-
isValidateSubmitAction
public boolean isValidateSubmitAction()
- Specified by:
isValidateSubmitAction
in interfaceIXFormRenderConfig
- Returns:
true
if the transmitted submit button name used to submit the form needs to be validated (whether such a button really existed), orfalse
otherwise.
-
setValidateSubmitAction
public void setValidateSubmitAction(boolean validateSubmitAction)
- Specified by:
setValidateSubmitAction
in interfaceIXFormRenderConfig
- Parameters:
validateSubmitAction
-true
if the transmitted submit button name used to submit the form needs to be validated (whether such a button really existed), orfalse
otherwise.
-
isLegacyUseOptionTextForAutocomplete
public boolean isLegacyUseOptionTextForAutocomplete()
- Specified by:
isLegacyUseOptionTextForAutocomplete
in interfaceIXFormRenderConfig
- Returns:
true
to use the legacy behavior where the option text of autocomplete elements was used when evaluating conditions.
-
setLegacyUseOptionTextForAutocomplete
public void setLegacyUseOptionTextForAutocomplete(boolean legacyUseOptionTextForAutocomplete)
- Specified by:
setLegacyUseOptionTextForAutocomplete
in interfaceIXFormRenderConfig
- Parameters:
legacyUseOptionTextForAutocomplete
-true
to use the legacy behavior where the option text of autocomplete elements was used when evaluating conditions.
-
setForceBranding
public void setForceBranding(boolean forceBranding)
- Specified by:
setForceBranding
in interfaceIXFormRenderConfig
-
isForceBranding
public boolean isForceBranding()
- Specified by:
isForceBranding
in interfaceIXFormRenderConfig
-
isHideRequiredHint
public boolean isHideRequiredHint()
- Specified by:
isHideRequiredHint
in interfaceIXFormRenderConfig
-
setHideRequiredHint
public void setHideRequiredHint(boolean isHideRequiredHint)
- Specified by:
setHideRequiredHint
in interfaceIXFormRenderConfig
-
getButtonDescriptor
public XButtonDescriptor getButtonDescriptor()
- Specified by:
getButtonDescriptor
in interfaceIXFormRenderConfig
-
setButtonDescriptor
public void setButtonDescriptor(XButtonDescriptor buttonDescriptor)
- Specified by:
setButtonDescriptor
in interfaceIXFormRenderConfig
-
-