public class CountryStateListDataBean extends java.lang.Object implements SmartDataBean, Delegator
Modifier and Type | Class and Description |
---|---|
static class |
CountryStateListDataBean.Country
This class contains properties that describe a country or region.
|
static class |
CountryStateListDataBean.StateProvince
This class contains properties that describe a state or province.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
emptyString
Constructor and Description |
---|
CountryStateListDataBean() |
Modifier and Type | Method and Description |
---|---|
CommandContext |
getCommandContext()
Returns the current command's context
|
java.util.Vector |
getCountries()
Returns the list of countries or regions.
|
java.lang.String |
getCountryCode()
The country or region code set in the data bean.
|
CountryStateListDataBean.StateProvince[] |
getCountryCodeStates()
Returns the list of states or provinces for the specified country or region code set in the databean.
|
Protectable |
getDelegate()
Retrieves its delegate.
|
TypedProperty |
getRequestProperties()
Gets the request properties.
|
java.lang.String |
getSelectedCountryDisplayName()
Returns the display name for the specified country or region code set in the databean.
|
java.lang.String |
getSelectedCountryStateDisplayName()
Returns the display name for the specified state or province code set in the databean.
|
java.lang.String |
getStateCode()
The state or province code set in the data bean.
|
CountryStateListDataBean.StateProvince[] |
getStates(java.lang.String countryCode)
Returns the list of states or provinces for the specified country or region code.
|
void |
populate()
Retrieve the countries or regions and their states.
|
void |
setCommandContext(CommandContext cc)
Sets the command context.
|
void |
setCountryCode(java.lang.String inCode)
Sets the country or region code to be used to retrieve the states or provinces, or
to retrieve the country display name.
|
void |
setRequestProperties(TypedProperty reqProp)
Sets the request properties.
|
void |
setStateCode(java.lang.String inCode)
Sets the state or province code to be used to retrieve the state display name.
|
public static final java.lang.String COPYRIGHT
public CommandContext getCommandContext()
getCommandContext
in interface SmartDataBean
public java.util.Vector getCountries()
public java.lang.String getCountryCode()
public java.lang.String getStateCode()
public TypedProperty getRequestProperties()
getRequestProperties
in interface InputDataBean
public CountryStateListDataBean.StateProvince[] getCountryCodeStates()
public CountryStateListDataBean.StateProvince[] getStates(java.lang.String countryCode)
countryCode
- The country or region code.public java.lang.String getSelectedCountryDisplayName()
public java.lang.String getSelectedCountryStateDisplayName()
public void populate() throws java.lang.Exception
populate
in interface SmartDataBean
java.lang.Exception
- The exception that occurs during execution.public void setCommandContext(CommandContext cc)
setCommandContext
in interface SmartDataBean
cc
- com.ibm.commerce.command.CommandContextpublic void setCountryCode(java.lang.String inCode)
inCode
- the country or region code for which the states or provinces, or the
country display name are/is returned.public void setStateCode(java.lang.String inCode)
inCode
- the state or province code for which the state display name is returned.public void setRequestProperties(TypedProperty reqProp)
setRequestProperties
in interface InputDataBean
reqProp
- The request properties.public Protectable getDelegate() throws java.lang.Exception
getDelegate
in interface Delegator
java.lang.Exception