Class TextAreaQuestionType
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.forms.question.types.AbstractStaticFormQuestionType
org.ametys.plugins.forms.question.types.AbstractFormQuestionType
org.ametys.plugins.forms.question.types.TextAreaQuestionType
- All Implemented Interfaces:
FormQuestionType
,ConfidentialAwareQuestionType
,DescriptibleFormQuestionType
,IllustrableFormQuestionType
,MandatoryAwareFormQuestionType
,RestrictiveQuestionType
,LogEnabled
,PluginAware
,Configurable
,Serviceable
Class for creating textarea questions
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Constant for number of lines attribute.static final String
Constant for placeholder attribute.static final String
Constant for default titleFields inherited from class org.ametys.plugins.forms.question.types.AbstractFormQuestionType
_workflowHelper
Fields inherited from class org.ametys.plugins.forms.question.types.AbstractStaticFormQuestionType
_category, _description, _formQuestionModel, _i18nUtils, _iconGlyph, _id, _label, _pluginName, _priority, _scripts, _xslt
Fields inherited from interface org.ametys.plugins.forms.question.types.ConfidentialAwareQuestionType
ATTRIBUTE_CONFIDENTIALITY
Fields inherited from interface org.ametys.plugins.forms.question.types.DescriptibleFormQuestionType
ATTRIBUTE_DESCRIPTION
Fields inherited from interface org.ametys.plugins.forms.question.types.IllustrableFormQuestionType
ATTRIBUTE_PICTURE, ATTRIBUTE_PICTURE_ALTERNATIVE
Fields inherited from interface org.ametys.plugins.forms.question.types.MandatoryAwareFormQuestionType
ATTRIBUTE_MANDATORY
Fields inherited from interface org.ametys.plugins.forms.question.types.RestrictiveQuestionType
ATTRIBUTE_READING, ATTRIBUTE_READING_CHECKBOX, ATTRIBUTE_WRITING, ATTRIBUTE_WRITING_CHECKBOX, INITIAL_WORKFLOW_ID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected SimpleViewItemGroup
Define the content of the advanced tabGet the list of ModelItemsGet the default title depending on typegetStorageType
(FormQuestion question) Get the storage type of the question typeMethods inherited from class org.ametys.plugins.forms.question.types.AbstractFormQuestionType
_getEntryModelItem, _getMainTab, _getTabs, getFieldToDisableIfFormPublished, getWorkflowDescriptor, service
Methods inherited from class org.ametys.plugins.forms.question.types.AbstractStaticFormQuestionType
_createAdvancedTab, _createMainTab, _getRulesTab, configure, doAdditionalOperations, getCategory, getDescription, getDisplayOrder, getDisplayXSLT, getEntryModel, getIconGlyph, getId, getLabel, getModel, getScripts, getView, isQuestionConfigured, saxAdditionalInfos, saxEntryValue, setPluginInfo, validateEntryValues, validateQuestionValues
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.plugins.forms.question.types.ConfidentialAwareQuestionType
getConfidentialityModelItem, getConfidentialityViewElement
Methods inherited from interface org.ametys.plugins.forms.question.types.DescriptibleFormQuestionType
getDescription, getDescriptionModelItem, getDescriptionViewElement
Methods inherited from interface org.ametys.plugins.forms.question.FormQuestionType
canBeAnsweredByUser, getJSConverter, getJSRenderer, isCacheable, onlyForDisplay, valueToJSONForClient
Methods inherited from interface org.ametys.plugins.forms.question.types.IllustrableFormQuestionType
getIllustration, getIllustrationAlternative, getIllustrationModelItems, getIllustrationTab
Methods inherited from interface org.ametys.plugins.forms.question.types.MandatoryAwareFormQuestionType
getMandatoryModelItem, getMandatoryValidator, getMandatoryViewElement, isMandatory
Methods inherited from interface org.ametys.plugins.forms.question.types.RestrictiveQuestionType
getReadingSteps, getRestrictiveModelItems, getRestrictiveTab, getWritingSteps, isModifiable, isReadRestricted
-
Field Details
-
ATTRIBUTE_LINE_NUMBER
Constant for number of lines attribute.- See Also:
-
ATTRIBUTE_PLACEHOLDER
Constant for placeholder attribute.- See Also:
-
DEFAULT_TITLE
Constant for default title- See Also:
-
-
Constructor Details
-
TextAreaQuestionType
public TextAreaQuestionType()
-
-
Method Details
-
_getModelItems
Description copied from class:AbstractStaticFormQuestionType
Get the list of ModelItems- Overrides:
_getModelItems
in classAbstractFormQuestionType
- Returns:
- a list of ModelItems
-
_getAdvancedTab
Description copied from class:AbstractFormQuestionType
Define the content of the advanced tab- Overrides:
_getAdvancedTab
in classAbstractFormQuestionType
- Returns:
- the advanced tab definition
-
getStorageType
Description copied from interface:FormQuestionType
Get the storage type of the question type- Parameters:
question
- the question- Returns:
- the storage type
-
getDefaultTitle
Description copied from interface:FormQuestionType
Get the default title depending on type- Returns:
- the default title
-