Class LocaleWidgetInitializer

java.lang.Object
com.portal.app.comp.LocaleWidgetInitializer

public class LocaleWidgetInitializer extends Object
Initializes a combo box with Portal locales.
  • Constructor Details

    • LocaleWidgetInitializer

      public LocaleWidgetInitializer(JComboBox localeCB)
      Initializes a combo box with Portal locales.
      Parameters:
      localeCB - The combo box to be filled with locales.
  • Method Details

    • selectLocale

      public void selectLocale(Locale locale)
      Selects a locale in the locale (language) widget. First tries to do a match for both ISO language and ISO country. If that fails then tries to do a match based on ISO language only. If nothing matches no selection change is done.
      Parameters:
      locale - The locale to select in the widget.