Class PhoneNumberFieldTemplate
java.lang.Object
org.bardframework.form.field.FieldTemplate<PhoneNumberField>
org.bardframework.form.field.input.InputFieldTemplate<PhoneNumberField,String>
org.bardframework.flow.form.field.input.phonenumber.PhoneNumberFieldTemplate
-
Field Summary
Fields inherited from class org.bardframework.form.field.input.InputFieldTemplate
descriptionShowType, disableExpression, persistentValue, valueProviderFields inherited from class org.bardframework.form.field.FieldTemplate
defaultValues, fieldClazz, log, name, showExpression -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPhoneNumberFieldTemplate(String name, PhoneNumberParser phoneNumberParser, CountrySelectFieldTemplate countrySelectFieldTemplate) -
Method Summary
Modifier and TypeMethodDescriptionvoidfill(FormTemplate formTemplate, PhoneNumberField field, Map<String, String> args, Locale locale) booleanvoidvalidate(String flowToken, FormTemplate formTemplate, Map<String, String> flowData, Map<String, String> formData, Locale locale, FormDataValidationException ex) Methods inherited from class org.bardframework.form.field.input.InputFieldTemplate
getDescriptionShowType, getDisableExpression, getValidationOrder, getValueProvider, isPersistentValue, setDescriptionShowType, setDisableExpression, setPersistentValue, setValueProvider, validateMethods inherited from class org.bardframework.form.field.FieldTemplate
getDefaultValues, getEmptyField, getFieldClazz, getLog, getName, getShowExpression, mustShow, setDefaultValues, setLog, setShowExpression, toField
-
Constructor Details
-
PhoneNumberFieldTemplate
protected PhoneNumberFieldTemplate(String name, PhoneNumberParser phoneNumberParser, CountrySelectFieldTemplate countrySelectFieldTemplate)
-
-
Method Details
-
validate
public void validate(String flowToken, FormTemplate formTemplate, Map<String, String> flowData, Map<String, throws ExceptionString> formData, Locale locale, FormDataValidationException ex) - Overrides:
validatein classInputFieldTemplate<PhoneNumberField,String> - Throws:
Exception
-
isValid
public boolean isValid(String flowToken, PhoneNumberField field, String value, Map<String, String> flowData) - Specified by:
isValidin classInputFieldTemplate<PhoneNumberField,String>
-
fill
public void fill(FormTemplate formTemplate, PhoneNumberField field, Map<String, String> args, Locale locale) throws Exception- Overrides:
fillin classInputFieldTemplate<PhoneNumberField,String> - Throws:
Exception
-
toValue
- Specified by:
toValuein classInputFieldTemplate<PhoneNumberField,String>
-