Package com.portal.app.comp
Class LocaleWidgetInitializer
java.lang.Object
com.portal.app.comp.LocaleWidgetInitializer
Initializes a combo box with Portal locales.
-
Constructor Summary
ConstructorsConstructorDescriptionLocaleWidgetInitializer
(JComboBox localeCB) Initializes a combo box with Portal locales. -
Method Summary
Modifier and TypeMethodDescriptionvoid
selectLocale
(Locale locale) Selects a locale in the locale (language) widget.
-
Constructor Details
-
LocaleWidgetInitializer
Initializes a combo box with Portal locales.- Parameters:
localeCB
- The combo box to be filled with locales.
-
-
Method Details
-
selectLocale
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.
-