Class AbstractListQuestionValidator
- java.lang.Object
-
- fr.paris.lutece.plugins.forms.validation.AbstractValidator
-
- fr.paris.lutece.plugins.forms.validation.AbstractListQuestionValidator
-
- All Implemented Interfaces:
IValidator
public abstract class AbstractListQuestionValidator extends AbstractValidator
Validator to verify the exact value of a response
-
-
Constructor Summary
Constructors Constructor Description AbstractListQuestionValidator(java.lang.String strValidatorName, java.lang.String strValidatorDisplayName, java.util.List<java.lang.String> listAvailableEntryType, java.util.List<java.lang.String> listAvailableFieldControl)Constructor of the PatternValidator
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDisplayHtml(Control control)java.lang.StringgetJavascriptControlValue(Control control)java.lang.StringgetJavascriptValidation()Only the content of the function should be returned.java.util.List<java.lang.String>getListAvailableFieldControl()-
Methods inherited from class fr.paris.lutece.plugins.forms.validation.AbstractValidator
getListAvailableEntryType, getValidatorBeanName, getValidatorDisplayName, validate
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface fr.paris.lutece.plugins.forms.validation.IValidator
validate
-
-
-
-
Constructor Detail
-
AbstractListQuestionValidator
public AbstractListQuestionValidator(java.lang.String strValidatorName, java.lang.String strValidatorDisplayName, java.util.List<java.lang.String> listAvailableEntryType, java.util.List<java.lang.String> listAvailableFieldControl)Constructor of the PatternValidator- Parameters:
strValidatorName- The validator bean namestrValidatorDisplayName- The validator display namelistAvailableEntryType- The list of available entrytype
-
-
Method Detail
-
getDisplayHtml
public java.lang.String getDisplayHtml(Control control)
- Specified by:
getDisplayHtmlin interfaceIValidator- Overrides:
getDisplayHtmlin classAbstractValidator- Parameters:
control- The control to build model- Returns:
- the HTML to display
-
getJavascriptValidation
public java.lang.String getJavascriptValidation()
Description copied from interface:IValidatorOnly the content of the function should be returned. The parameter names are in FormsConstants, JS_PARAMETER_INPUT_VALUE and JS_PARAMETER_CONTROL_VALUE- Specified by:
getJavascriptValidationin interfaceIValidator- Overrides:
getJavascriptValidationin classAbstractValidator- Returns:
- the javascript validation code for Conditional display control
-
getJavascriptControlValue
public java.lang.String getJavascriptControlValue(Control control)
- Specified by:
getJavascriptControlValuein interfaceIValidator- Overrides:
getJavascriptControlValuein classAbstractValidator- Parameters:
control- The control- Returns:
- the control value needed for javascript
-
getListAvailableFieldControl
public java.util.List<java.lang.String> getListAvailableFieldControl()
-
-