Package rife.forms
Class FormBuilderXml
java.lang.Object
rife.forms.AbstractFormBuilder
rife.forms.FormBuilderXml
- All Implemented Interfaces:
Cloneable
,FormBuilder
-
Field Summary
Fields inherited from interface rife.forms.FormBuilder
ID_FORM_FIELD, ID_FORM_LABEL, ID_FORM_NAME, ID_FORM_VALUE, MIDDLE_ATTRIBUTES, PREFIX_FORM_CHECKBOX, PREFIX_FORM_DISPLAY, PREFIX_FORM_HIDDEN, PREFIX_FORM_INPUT, PREFIX_FORM_LABEL, PREFIX_FORM_RADIO, PREFIX_FORM_SECRET, PREFIX_FORM_SELECT, PREFIX_FORM_TEXTAREA, SUFFIX_CHECKED, SUFFIX_SELECTED, TAG_CHECKED, TAG_SELECTED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
protected void
generateFieldCheckbox
(Template template, String templateFieldName, Class propertyType, String name, ConstrainedProperty property, String[] values, Template builderTemplate, List<String> setValues, boolean replaceExistingValues) protected void
generateFieldHidden
(Template template, String templateFieldName, String name, ConstrainedProperty property, String[] values, Template builderTemplate, List<String> setValues, boolean replaceExistingValues) protected void
generateFieldInput
(Template template, String templateFieldName, String name, ConstrainedProperty property, String[] values, Template builderTemplate, List<String> setValues, boolean replaceExistingValues) protected void
generateFieldRadio
(Template template, String templateFieldName, Class propertyType, String name, ConstrainedProperty property, String[] values, Template builderTemplate, List<String> setValues, boolean replaceExistingValues) protected void
generateFieldSecret
(Template template, String templateFieldName, String name, ConstrainedProperty property, String[] values, Template builderTemplate, List<String> setValues, boolean replaceExistingValues) protected void
generateFieldTextarea
(Template template, String templateFieldName, String name, ConstrainedProperty property, String[] values, Template builderTemplate, List<String> setValues, boolean replaceExistingValues) protected Template
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
Returns theValidationBuilder
that is used by thisFormBuilder
.protected String
protected String
protected String
sanitizeAttributes
(String value) Methods inherited from class rife.forms.AbstractFormBuilder
generateField, generateField, generateField, generateField, generateField, generateField, generateField, generateFieldCollection, generateFieldDisplay, generateFieldSelect, generateFieldText, generateForm, generateForm, generateForm, generateFormField, generateLabel, removeField, removeField, removeForm, replaceField, replaceField, replaceField, replaceField, selectParameter, unselectParameter
-
Field Details
-
VALUE_SELECTED
- See Also:
-
VALUE_CHECKED
- See Also:
-
-
Constructor Details
-
FormBuilderXml
public FormBuilderXml()
-
-
Method Details
-
getValidationBuilder
Description copied from interface:FormBuilder
Returns theValidationBuilder
that is used by thisFormBuilder
.- Specified by:
getValidationBuilder
in interfaceFormBuilder
- Specified by:
getValidationBuilder
in classAbstractFormBuilder
- Returns:
- this
FormBuilder
'sValidationBuilder
-
getBuilderTemplateInstance
- Specified by:
getBuilderTemplateInstance
in classAbstractFormBuilder
-
sanitizeAttributes
- Specified by:
sanitizeAttributes
in classAbstractFormBuilder
-
generateFieldHidden
protected void generateFieldHidden(Template template, String templateFieldName, String name, ConstrainedProperty property, String[] values, Template builderTemplate, List<String> setValues, boolean replaceExistingValues) - Specified by:
generateFieldHidden
in classAbstractFormBuilder
-
generateFieldInput
protected void generateFieldInput(Template template, String templateFieldName, String name, ConstrainedProperty property, String[] values, Template builderTemplate, List<String> setValues, boolean replaceExistingValues) - Specified by:
generateFieldInput
in classAbstractFormBuilder
-
generateFieldSecret
protected void generateFieldSecret(Template template, String templateFieldName, String name, ConstrainedProperty property, String[] values, Template builderTemplate, List<String> setValues, boolean replaceExistingValues) - Specified by:
generateFieldSecret
in classAbstractFormBuilder
-
generateFieldTextarea
protected void generateFieldTextarea(Template template, String templateFieldName, String name, ConstrainedProperty property, String[] values, Template builderTemplate, List<String> setValues, boolean replaceExistingValues) - Specified by:
generateFieldTextarea
in classAbstractFormBuilder
-
generateFieldRadio
protected void generateFieldRadio(Template template, String templateFieldName, Class propertyType, String name, ConstrainedProperty property, String[] values, Template builderTemplate, List<String> setValues, boolean replaceExistingValues) - Specified by:
generateFieldRadio
in classAbstractFormBuilder
-
generateFieldCheckbox
protected void generateFieldCheckbox(Template template, String templateFieldName, Class propertyType, String name, ConstrainedProperty property, String[] values, Template builderTemplate, List<String> setValues, boolean replaceExistingValues) - Specified by:
generateFieldCheckbox
in classAbstractFormBuilder
-
getIdName
- Specified by:
getIdName
in classAbstractFormBuilder
-
getIdAttributes
- Specified by:
getIdAttributes
in classAbstractFormBuilder
-
getIdValue
- Specified by:
getIdValue
in classAbstractFormBuilder
-
getIdMinlength
- Specified by:
getIdMinlength
in classAbstractFormBuilder
-
getIdMaxlength
- Specified by:
getIdMaxlength
in classAbstractFormBuilder
-
getIdRequired
- Specified by:
getIdRequired
in classAbstractFormBuilder
-
getIdChecked
- Specified by:
getIdChecked
in classAbstractFormBuilder
-
getIdOptions
- Specified by:
getIdOptions
in classAbstractFormBuilder
-
getIdSelected
- Specified by:
getIdSelected
in classAbstractFormBuilder
-
getIdLabel
- Specified by:
getIdLabel
in classAbstractFormBuilder
-
getIdDisabled
- Specified by:
getIdDisabled
in classAbstractFormBuilder
-
getIdFormOption
- Specified by:
getIdFormOption
in classAbstractFormBuilder
-
getValueSelected
- Specified by:
getValueSelected
in classAbstractFormBuilder
-
getValueChecked
- Specified by:
getValueChecked
in classAbstractFormBuilder
-
clone
- Specified by:
clone
in interfaceFormBuilder
- Overrides:
clone
in classAbstractFormBuilder
-