Interface DynamicRegionalForm
- All Superinterfaces:
org.broadleafcommerce.common.copy.MultiTenantCloneable<DynamicRegionalForm>,Serializable
- All Known Implementing Classes:
DynamicRegionalFormImpl
public interface DynamicRegionalForm
extends Serializable, org.broadleafcommerce.common.copy.MultiTenantCloneable<DynamicRegionalForm>
- Author:
- Elbert Bautista (elbertbautista)
-
Method Summary
Modifier and TypeMethodDescriptionorg.broadleafcommerce.common.web.form.BroadleafFormTypeGet theBroadleafFormTypeform this Dynamic FormgetId()Unique id of the DB recordorg.broadleafcommerce.common.i18n.domain.ISOCountryReturns the ISOCountry that this form is associated withgetName()Get the name of this Dynamic FormvoidsetFormType(org.broadleafcommerce.common.web.form.BroadleafFormType formType) Sets theBroadleafFormTypefor this Dynamic FormvoidSets the id of the DB recordvoidsetIsoCountry(org.broadleafcommerce.common.i18n.domain.ISOCountry isoCountry) Sets the ISOCountry for this Form.voidSets the name for this Dynamic FormvoidsetRegionalFormFieldList(List<DynamicRegionalFormField> regionalFormFieldList) sets the DynamicRegionalFormFieldlist.Methods inherited from interface org.broadleafcommerce.common.copy.MultiTenantCloneable
createOrRetrieveCopyInstance
-
Method Details
-
getId
Long getId()Unique id of the DB record- Returns:
- the id
-
setId
Sets the id of the DB record- Parameters:
id-
-
getIsoCountry
org.broadleafcommerce.common.i18n.domain.ISOCountry getIsoCountry()Returns the ISOCountry that this form is associated with- Returns:
- the ISOCountry
-
setIsoCountry
void setIsoCountry(org.broadleafcommerce.common.i18n.domain.ISOCountry isoCountry) Sets the ISOCountry for this Form. A Regional Form is tied to an ISOCountry and not aCountryallowing you to internationalize a form for all countries and not just those restricted to the lookup table.For example: You can prevent shipping to specified countries using the
Countryon a shipping address form, however that shouldn't inhibit customers from paying with a billing address based in another country.- Parameters:
isoCountry-
-
setRegionalFormFieldList
sets the DynamicRegionalFormFieldlist. Each line in the form is seen as a DynamicRegionalFormField. which contain DynamicRegionalFormFieldItems.- Parameters:
regionalFormFieldList-
-
getDynamicFormFieldList
List<DynamicRegionalFormField> getDynamicFormFieldList()- Returns:
- the list of the FormFields
-
getName
String getName()Get the name of this Dynamic Form- Returns:
-
setName
Sets the name for this Dynamic Form- Parameters:
formType-
-
getFormType
org.broadleafcommerce.common.web.form.BroadleafFormType getFormType()Get theBroadleafFormTypeform this Dynamic Form- Returns:
-
setFormType
void setFormType(org.broadleafcommerce.common.web.form.BroadleafFormType formType) Sets theBroadleafFormTypefor this Dynamic Form- Parameters:
formType-
-