Package nl.gx.forms.wmpformapi.api.logic
Interface Parameter
-
- All Superinterfaces:
BasicParameter
,Identifiable
- All Known Subinterfaces:
ParameterReference
public interface Parameter extends Identifiable, BasicParameter
Represents an actual configured parameter for a form logic component or a form.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<FormLanguageLabelContainer>
getLanguageContainers()
Returns the language label containers that hold translations of specific properties of this form fragment.FormLanguageLabelContainer
getOrCreateLanguageContainer(String locale)
Returns or creates a language label container for a specific localeboolean
isHidden()
Returns the hidden flag.boolean
isReadOnly()
Returns the readOnly flag.void
setExpression(String expression)
Sets the expression that should be evaluated to determine the value of this parameter.void
setFormStep(FormStep formStep)
Sets the form step for this Parameter.void
setFragment(String fragment)
Sets the fragment that is the value of this parameter in case the ParameterType indicates it is of type Fragment.void
setHidden(boolean hidden)
Sets the hidden flag of this parameter.void
setLanguageContainers(List<FormLanguageLabelContainer> containers)
Sets the language label containers that hold translations of specific properties of this form fragment.void
setLanguageLabel(LanguageLabel languageLabel)
Sets the language label for this Parameter.void
setParameterDefinition(ParameterDefinition parameterDefinition)
Sets the ParameterDefinition for this Parameter.void
setParameterMode(ParameterMode mode)
Sets the mode in which to determine the eventual value of this parameter.void
setReadOnly(boolean readOnly)
Sets the readOnly flag of this parameter.void
setTextValue(String textValue)
Sets the text value for this Parameter.void
setValue(String value)
Returns the value for this Parameter.-
Methods inherited from interface nl.gx.forms.wmpformapi.api.BasicParameter
getExpression, getFormStep, getFragment, getLanguageLabel, getParameterDefinition, getParameterMode, getTextValue, getValue
-
Methods inherited from interface nl.gx.webmanager.services.entitymanager.Identifiable
getId, setId
-
-
-
-
Method Detail
-
setParameterDefinition
void setParameterDefinition(ParameterDefinition parameterDefinition)
Sets the ParameterDefinition for this Parameter.- Parameters:
parameterDefinition
- the ParameterDefinition
-
setValue
void setValue(String value)
Returns the value for this Parameter. This property is used for parameters of type Boolean, String, Page, FormFragment and for when the parameter type has been overridden; in the latter case, the value is a JavaScript expression. When the parameter is of type FormFragment, the identifier relative to the root, the identifier relative to the FormVersion is stored (e.g. formstepidentifier.formfragmentidentifier).- Parameters:
value
- the value for this Parameter
-
setFormStep
void setFormStep(FormStep formStep)
Sets the form step for this Parameter. This property is used for parameters of type Form Step.- Parameters:
formStep
- the form step for this Parameter
-
setLanguageLabel
void setLanguageLabel(LanguageLabel languageLabel)
Sets the language label for this Parameter. This property is used for parameters of type Language Label.- Parameters:
languageLabel
- the language label for this Parameter
-
setExpression
void setExpression(String expression)
Sets the expression that should be evaluated to determine the value of this parameter.- Parameters:
expression
- the expression that should be evaluated to determine the value of this parameter
-
setFragment
void setFragment(String fragment)
Sets the fragment that is the value of this parameter in case the ParameterType indicates it is of type Fragment.- Parameters:
fragment
- the fragment to assign to this parameter
-
setParameterMode
void setParameterMode(ParameterMode mode)
Sets the mode in which to determine the eventual value of this parameter.- Parameters:
mode
- the mode in which to determine the eventual value of this parameter
-
setTextValue
void setTextValue(String textValue)
Sets the text value for this Parameter. This property is used for parameters of type Text.- Parameters:
textValue
- the text value for this Parameter
-
getLanguageContainers
List<FormLanguageLabelContainer> getLanguageContainers()
Returns the language label containers that hold translations of specific properties of this form fragment.- Returns:
- the language label containers that hold translations of specific properties
-
setLanguageContainers
void setLanguageContainers(List<FormLanguageLabelContainer> containers)
Sets the language label containers that hold translations of specific properties of this form fragment.- Parameters:
containers
- the language label containers that hold translations of specific properties
-
getOrCreateLanguageContainer
FormLanguageLabelContainer getOrCreateLanguageContainer(String locale)
Returns or creates a language label container for a specific locale- Parameters:
locale
- the locale for which to return the language label container- Returns:
- the language label container for the specified locale
-
setHidden
void setHidden(boolean hidden)
Sets the hidden flag of this parameter. A hidden parameter is hidden for the editor, but will nevertheless be available for the FormLogicComponent.- Parameters:
hidden
- the boolean value to set the hidden flag
-
isHidden
boolean isHidden()
Returns the hidden flag.- Returns:
- true if this parameter is hidden
-
setReadOnly
void setReadOnly(boolean readOnly)
Sets the readOnly flag of this parameter. A readOnly parameter is readOnly for the editor, but will nevertheless be available for the FormLogicComponent.- Parameters:
readOnly
- the boolean value to set the readOnly flag
-
isReadOnly
boolean isReadOnly()
Returns the readOnly flag.- Returns:
- true if this parameter is readOnly
-
-