Class AddressBookAddressForm
java.lang.Object
org.apache.struts.action.ActionForm
com.softslate.commerce.customer.core.BaseForm
com.softslate.commerce.customer.order.BillingAddressForm
com.softslate.commerce.customer.order.AddressesForm
com.softslate.commerce.customer.order.AddressBookAddressForm
- All Implemented Interfaces:
Serializable
- Author:
- Jason McWilliams
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprivate String
private boolean
(package private) static org.apache.commons.logging.Log
private static final long
private String
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
If this forms deliveryUseBilling property is set, copies billing properties to delivery properties.void
copyBillingToDelivery
(boolean fromBilling) describeAddressType
(String addressType) getCity()
boolean
getNotes()
getOther()
getState()
void
setAddress1
(String address1) void
setAddress2
(String address2) void
void
setCountry
(String country) void
setCustomerAddressID
(String customerAddressID) void
void
void
void
void
void
void
void
setFirstName
(String firstName) void
setIsBilling
(boolean isBilling) void
setLastName
(String lastName) void
void
setOrganization
(String organization) void
void
void
void
setPostalCode
(String postalCode) void
void
setUseForBilling
(String useForBilling) org.apache.struts.action.ActionErrors
validate
(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request) Methods inherited from class com.softslate.commerce.customer.order.AddressesForm
getDeliveryAddress1, getDeliveryAddress2, getDeliveryCity, getDeliveryCountry, getDeliveryEmail1, getDeliveryEmail2, getDeliveryExtra1, getDeliveryExtra2, getDeliveryExtra3, getDeliveryExtra4, getDeliveryExtra5, getDeliveryFirstName, getDeliveryLastName, getDeliveryNotes, getDeliveryOrganization, getDeliveryOther, getDeliveryPhone1, getDeliveryPhone2, getDeliveryPostalCode, getDeliveryState, getDeliveryUseBilling, isDeliveryFieldValid, prepareStateAndOtherFields, prepareStateAndOtherFields, setDeliveryAddress1, setDeliveryAddress2, setDeliveryCity, setDeliveryCountry, setDeliveryEmail1, setDeliveryEmail2, setDeliveryExtra1, setDeliveryExtra2, setDeliveryExtra3, setDeliveryExtra4, setDeliveryExtra5, setDeliveryFirstName, setDeliveryLastName, setDeliveryNotes, setDeliveryOrganization, setDeliveryOther, setDeliveryPhone1, setDeliveryPhone2, setDeliveryPostalCode, setDeliveryState, setDeliveryUseBilling, validateDeliveryFields, validateDeliveryStateField
Methods inherited from class com.softslate.commerce.customer.order.BillingAddressForm
doesCountryAllowOtherStates, getBillingAddress1, getBillingAddress2, getBillingCity, getBillingCountry, getBillingEmail1, getBillingEmail2, getBillingExtra1, getBillingExtra2, getBillingExtra3, getBillingExtra4, getBillingExtra5, getBillingFirstName, getBillingLastName, getBillingNotes, getBillingOrganization, getBillingOther, getBillingPhone1, getBillingPhone2, getBillingPostalCode, getBillingState, getCsrfToken, isBillingFieldValid, isOtherState, setBillingAddress1, setBillingAddress2, setBillingCity, setBillingCountry, setBillingEmail1, setBillingEmail2, setBillingExtra1, setBillingExtra2, setBillingExtra3, setBillingExtra4, setBillingExtra5, setBillingFirstName, setBillingLastName, setBillingNotes, setBillingOrganization, setBillingOther, setBillingPhone1, setBillingPhone2, setBillingPostalCode, setBillingState, setCsrfToken, stateAndCountryMatch, validateBillingFields, validateBillingStateField
Methods inherited from class com.softslate.commerce.customer.core.BaseForm
formUtils, getBusinessObjectFactory, getErrors, getMapping, getMessage, getMessages, getRequest, getSettings, getUser, html5OrXhtml, initializeProperties, setBusinessObjectFactory, setErrors, setMapping, setMessages, setRequest, setSettings, setUser
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, reset, setMultipartRequestHandler, setServlet, validate
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
log
static org.apache.commons.logging.Log log -
customerAddressID
-
useForBilling
-
isBilling
private boolean isBilling
-
-
Constructor Details
-
AddressBookAddressForm
public AddressBookAddressForm()
-
-
Method Details
-
getUseForBilling
-
setUseForBilling
-
getCustomerAddressID
-
setCustomerAddressID
-
getIsBilling
public boolean getIsBilling() -
setIsBilling
public void setIsBilling(boolean isBilling) -
validate
public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request) - Overrides:
validate
in classAddressesForm
-
copyBillingToDelivery
public void copyBillingToDelivery()Description copied from class:AddressesForm
If this forms deliveryUseBilling property is set, copies billing properties to delivery properties.- Overrides:
copyBillingToDelivery
in classAddressesForm
-
copyBillingToDelivery
public void copyBillingToDelivery(boolean fromBilling) -
describeAddressType
-
getFirstName
-
setFirstName
-
getLastName
-
setLastName
-
getOrganization
-
setOrganization
-
getAddress1
-
setAddress1
-
getAddress2
-
setAddress2
-
getCity
-
setCity
-
getState
-
setState
-
getOther
-
setOther
-
getPostalCode
-
setPostalCode
-
getCountry
-
setCountry
-
getPhone1
-
setPhone1
-
getPhone2
-
setPhone2
-
getEmail1
-
setEmail1
-
getEmail2
-
setEmail2
-
getExtra1
-
setExtra1
-
getExtra2
-
setExtra2
-
getExtra3
-
setExtra3
-
getExtra4
-
setExtra4
-
getExtra5
-
setExtra5
-
getNotes
-
setNotes
-