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.
|
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()
public java.util.Vector getCountries()
public java.lang.String getCountryCode()
public java.lang.String getStateCode()
public TypedProperty getRequestProperties()
public CountryStateListDataBean.StateProvince[] getCountryCodeStates()
public CountryStateListDataBean.StateProvince[] getStates(java.lang.String countryCode)
public java.lang.String getSelectedCountryDisplayName()
public java.lang.String getSelectedCountryStateDisplayName()
public void populate() throws java.lang.Exception
public void setCommandContext(CommandContext cc)
public void setCountryCode(java.lang.String inCode)
public void setStateCode(java.lang.String inCode)
public void setRequestProperties(TypedProperty reqProp)
public Protectable getDelegate() throws java.lang.Exception