Package lumis.service.formbuilder
Class FormField
- java.lang.Object
-
- lumis.service.formbuilder.FormField
-
public class FormField extends java.lang.Object
Form Builder fields- Since:
- 8.2.0
- Version:
- $Revision$ $Date$
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NAMED_QUERY_GET_FIELD_BY_FIELDID_AND_FORM_ID
-
Constructor Summary
Constructors Constructor Description FormField()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAdditionalText()
Returns the additional textjava.lang.String
getFieldId()
Returns the field identifier.java.lang.String
getFormId()
java.lang.Integer
getHeadingLevel()
Returns the level that Heading will be shown.java.lang.String
getHeadingText()
Returns the heading text.java.lang.String
getHelpText()
Returns the help text.java.lang.String
getId()
Returns theFormField
identifier.java.lang.Integer
getMaxLength()
Returns the max lengthjava.util.List<lumis.service.formbuilder.FormFieldOption>
getOptions()
Returns the options for this field.int
getPosition()
Returns the display position of theFormField
.java.lang.String
getTitle()
Returns the title.FormFieldType
getType()
Returns the type.boolean
isRequired()
Returns if the user is required to answer theFormField
.void
setAdditionalText(java.lang.String additionalText)
Sets the additional textvoid
setFieldId(java.lang.String fieldId)
Sets the field identifier.void
setFormId(java.lang.String form)
void
setHeadingLevel(java.lang.Integer headingLevel)
Sets the Heading level.void
setHeadingText(java.lang.String headingText)
Sets Heading Text.void
setHelpText(java.lang.String helpText)
Sets the help textvoid
setId(java.lang.String id)
Sets theFormField
identifier.void
setMaxLength(java.lang.Integer maxLength)
Sets the max lengthvoid
setOptions(java.util.List<lumis.service.formbuilder.FormFieldOption> options)
void
setPosition(int position)
Sets the display position of theFormField
.void
setRequired(boolean required)
Sets if the user is required to answer theFormField
.void
setTitle(java.lang.String title)
Sets the title.void
setType(FormFieldType type)
Sets the type.
-
-
-
Field Detail
-
NAMED_QUERY_GET_FIELD_BY_FIELDID_AND_FORM_ID
public static final java.lang.String NAMED_QUERY_GET_FIELD_BY_FIELDID_AND_FORM_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public java.lang.String getId()
Returns theFormField
identifier.- Returns:
- the identifier
- Since:
- 8.2.0
-
setId
public void setId(java.lang.String id)
Sets theFormField
identifier.- Parameters:
id
- the identifier value to set.- Since:
- 8.2.0
-
getFormId
public java.lang.String getFormId()
- Returns:
- the
Form
- Since:
- 8.2.0
-
setFormId
public void setFormId(java.lang.String form)
- Parameters:
form
- theForm
- Since:
- 8.2.0
-
getPosition
public int getPosition()
Returns the display position of theFormField
.- Returns:
- the position
- Since:
- 8.2.0
-
setPosition
public void setPosition(int position)
Sets the display position of theFormField
.- Parameters:
position
- the position value to set.- Since:
- 8.2.0
-
isRequired
public boolean isRequired()
Returns if the user is required to answer theFormField
.- Returns:
- the required
- Since:
- 8.2.0
-
setRequired
public void setRequired(boolean required)
Sets if the user is required to answer theFormField
.- Parameters:
required
- the required value to set.- Since:
- 8.2.0
-
getTitle
public java.lang.String getTitle()
Returns the title.- Returns:
- the title
- Since:
- 8.2.0
-
setTitle
public void setTitle(java.lang.String title)
Sets the title.- Parameters:
title
- the title value to set.- Since:
- 8.2.0
-
getFieldId
public java.lang.String getFieldId()
Returns the field identifier.- Returns:
- the field identifier
- Since:
- 8.2.0
-
setFieldId
public void setFieldId(java.lang.String fieldId)
Sets the field identifier.- Parameters:
fieldId
- the field identifier value to set.- Since:
- 8.2.0
-
getType
public FormFieldType getType()
Returns the type.- Returns:
- the type
- Since:
- 8.2.0
-
setType
public void setType(FormFieldType type)
Sets the type.- Parameters:
type
- the type value to set.- Since:
- 8.2.0
-
getOptions
public java.util.List<lumis.service.formbuilder.FormFieldOption> getOptions()
Returns the options for this field.The returned list is detached from this entity and any modification on it will not be applied automatically. To modify the options of this field use
setOptions(List)
.- Returns:
- the options for this field, or
null
if this field has no option. - Since:
- 9.0.0
-
setOptions
public void setOptions(java.util.List<lumis.service.formbuilder.FormFieldOption> options)
-
getHelpText
public java.lang.String getHelpText()
Returns the help text.- Returns:
- the help text.
- Since:
- 11.2.0
-
setHelpText
public void setHelpText(java.lang.String helpText)
Sets the help text- Parameters:
helpText
- the help text to set- Since:
- 11.2.0
-
getAdditionalText
public java.lang.String getAdditionalText()
Returns the additional text- Returns:
- the additional text
- Since:
- 11.2.0
-
setAdditionalText
public void setAdditionalText(java.lang.String additionalText)
Sets the additional text- Parameters:
additionalText
- the additional text to set- Since:
- 11.2.0
-
getMaxLength
public java.lang.Integer getMaxLength()
Returns the max length- Returns:
- Since:
- 17.0.0
-
setMaxLength
public void setMaxLength(java.lang.Integer maxLength)
Sets the max length- Parameters:
maxLength
- the max length allowed in characters- Since:
- 17.0.0
-
getHeadingText
public java.lang.String getHeadingText()
Returns the heading text.- Returns:
- Since:
- 17.0.0
-
setHeadingText
public void setHeadingText(java.lang.String headingText)
Sets Heading Text.- Parameters:
headingText
- the text.- Since:
- 17.0.0
-
getHeadingLevel
public java.lang.Integer getHeadingLevel()
Returns the level that Heading will be shown.- Returns:
- Since:
- 17.0.0
-
setHeadingLevel
public void setHeadingLevel(java.lang.Integer headingLevel)
Sets the Heading level.- Parameters:
headingLevel
- the exhibition level.- Since:
- 17.0.0
-
-