Class PNamePanel

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

public class PNamePanel extends PI18NPanel
An I18N-aware general panel for inputting, displaying and modifying name information from NameInfo. The presence and location of name fields will be determined based on account locale.
See Also:
  • Constructor Details

    • PNamePanel

      public PNamePanel()
  • Method Details

    • getFirstName

      public String getFirstName()
      Get the first name from the panel
      Returns:
      first name in the panel
    • getMiddleName

      public String getMiddleName()
      Get the middle name from the panel
      Returns:
      middle name in the panel
    • getLastName

      public String getLastName()
      Get the last name from the panel
      Returns:
      last name in the panel
    • setFirstName

      public void setFirstName(String str)
      Set the first name
      Parameters:
      str - first name
    • setMiddleName

      public void setMiddleName(String str)
      Set the middle name
      Parameters:
      str - middle name
    • setLastName

      public void setLastName(String str)
      Set the last name
      Parameters:
      str - last name
    • setDisplayMiddleNameForCJK

      public void setDisplayMiddleNameForCJK(boolean b)
      Display the middle name for CJK locale.
      Parameters:
      b - true if we want to display middle name for CJK locale; false if not. Default is false.
    • setLocale

      public void setLocale(Locale newLocale)
      Call to setLocale() will change the name display order based on the locale. If the locale is a non-CJK locales, the name is in the order of first name, middle name, last name. If the locale is CJK locale, the order of name is last name, first name.
      Overrides:
      setLocale in class Component
      Parameters:
      newLocale - An account locale
    • changeLayout

      public void changeLayout(Locale newLocale)
      Set the name layout according to the locale. changeLayout() is called automatically by PI18NPanel when the account locale is changed.
      Overrides:
      changeLayout in class PI18NPanel
      Parameters:
      newLocale - account locale or system locale.
    • setDefault

      public void setDefault()
      Description copied from class: PIACustomizablePanel
      Establishes the current value of every Portal-aware descendant as the default value for that component.
      Specified by:
      setDefault in interface PComponentAttribute
      Overrides:
      setDefault in class PIACustomizablePanel
    • resetToDefault

      public void resetToDefault()
      Description copied from class: PIACustomizablePanel
      A convenience method that resets every field on this panel.
      Specified by:
      resetToDefault in interface PComponentAttribute
      Overrides:
      resetToDefault in class PIACustomizablePanel