Class PAddressPanel

All Implemented Interfaces:
PAppComponent, PClientComponent, PCollectDataListener, PComponent, PComponentAttribute, PViewDataChangeListener, ContainerListener, ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible

public class PAddressPanel extends PI18NPanel
An I18N-aware generalized panel for inputting/displaying/modifying address information. The presence and location of the address fields will be determined by the account locale.
See Also:
  • Field Details

    • SOURCE_ACCOUNT_NAMEINFO

      public static final int SOURCE_ACCOUNT_NAMEINFO
      See Also:
    • SOURCE_PAYMENT_CREDIT

      public static final int SOURCE_PAYMENT_CREDIT
      See Also:
    • SOURCE_PAYMENT_DIRDEBIT

      public static final int SOURCE_PAYMENT_DIRDEBIT
      See Also:
    • SOURCE_PAYMENT_FUSADIRDEBIT

      public static final int SOURCE_PAYMENT_FUSADIRDEBIT
      See Also:
    • SOURCE_PAYMENT_INVOICE

      public static final int SOURCE_PAYMENT_INVOICE
      See Also:
    • SOURCE_PAYMENT_SEPA

      public static final int SOURCE_PAYMENT_SEPA
      See Also:
  • Constructor Details

    • PAddressPanel

      public PAddressPanel(int source)
  • Method Details

    • getAddress

      public String getAddress()
      Get the address from the address panel
      Returns:
      address
    • getCity

      public String getCity()
      Get the name of city
      Returns:
      city
    • getZip

      public String getZip()
      Get the zip code or postal code
      Returns:
      zip or postal code
    • getState

      public String getState()
      Get the state or province
      Returns:
      State or Province from the address
    • getCountry

      public String getCountry()
      Get the Country
      Returns:
      Country from the address
    • setAddress

      public void setAddress(String str)
      Set the address
    • setCity

      public void setCity(String str)
      Set the city
    • setZip

      public void setZip(String str)
      Set the zip code or postal code
    • setState

      public void setState(String str)
      Set the state or province
    • setCountry

      public void setCountry(String str)
      Set the Country
    • invalidateAddress

      public void invalidateAddress()
    • changeLayout

      public void changeLayout(Locale newLocale)
      Change the address display order based on the locale. It is called automatically from PI18NPanel when account locale is changed.
      Overrides:
      changeLayout in class PI18NPanel
      Parameters:
      newLocale - An account locale
    • getResourceBundle

      protected ResourceBundle getResourceBundle()
      Get the Resource Bundle
      Returns:
      bundle
    • addCountryListener

      protected final void addCountryListener(ItemListener l)
    • addStateListener

      protected final void addStateListener(ItemListener l)
    • addCityListener

      protected final void addCityListener(ItemListener l)
    • addZipListener

      protected final void addZipListener(ItemListener l)
    • removeCountryListener

      protected final void removeCountryListener(ItemListener l)
    • removeStateListener

      protected final void removeStateListener(ItemListener l)
    • removeCityListener

      protected final void removeCityListener(ItemListener l)
    • removeZipListener

      protected final void removeZipListener(ItemListener l)
    • setValidCountries

      protected final void setValidCountries(String[] countries, String defVal)
      Establishes the list of selectable values for this panel's country field as well as passes the initial country that should be selected bydefault in the menu.The list will appear as a dropdown menu in the panel instead of an editable textfield.
      Parameters:
      countries - The list of selectable countries
    • setValidStates

      protected final void setValidStates(String[] states, String defVal)
      Establishes the list of selectable values for this panel's state field as well as passes the initial state that should be selected bydefault in the menu.The list will appear as a dropdown menu in the panel instead of an editable textfield.
      Parameters:
      countries - The list of selectable states
    • setValidCities

      protected final void setValidCities(String[] cities, String defVal)
      Establishes the list of selectable values for this panel's city field as well as passes the initial city that should be selected bydefault in the menu.The list will appear as a dropdown menu in the panel instead of an editable textfield.
      Parameters:
      countries - The list of selectable cities
    • setValidZips

      protected void setValidZips(String[] zips, String defVal)
      Establishes the list of selectable values for this panel's zip field as well as passes the initial zip that should be selected bydefault in the menu.The list will appear as a dropdown menu in the panel instead of an editable textfield.
      Parameters:
      countries - The list of selectable zips