Class LocaleSelectItemGroupProvider
java.lang.Object
javax.faces.model.SelectItem
com.webmethods.caf.faces.data.object.DefaultSelectItemProvider
com.webmethods.caf.faces.data.object.DefaultSelectItemGroupProvider
com.webmethods.caf.faces.data.i18n.LocaleSelectItemGroupProvider
- All Implemented Interfaces:
IFilterableSelectItemGroupProvider
,ISelectItemGroupProvider
,ISelectItemProvider
,Serializable
Custom select item group provider for UI select controls.
Displays available locales.
- See Also:
-
Field Summary
FieldsFields inherited from class com.webmethods.caf.faces.data.object.DefaultSelectItemGroupProvider
m_filter, m_filterable, m_items
Fields inherited from class com.webmethods.caf.faces.data.object.DefaultSelectItemProvider
m_description, m_disabled, m_escaped, m_icon, m_label, m_style, m_value, source
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get the show installed language packs only value.void
setShowInstalledLangPacksOnly
(boolean showInstalledLangPacksOnly) Set the list of select items to only be installed language packs.Methods inherited from class com.webmethods.caf.faces.data.object.DefaultSelectItemGroupProvider
add, findSelectItemContentProvider, getFilter, getSelectItemContentProviders, initialize, initialize, initialize, initialize, initialize, initialize, initialize, initialize, initialize, initialize, initialize, initialize, isFilterable, setFilter, setFilterable
Methods inherited from class com.webmethods.caf.faces.data.object.DefaultSelectItemProvider
getDescription, getIcon, getLabel, getSource, getStyle, getValue, initialize, initialize, isDisabled, isEscape, setDescription, setDisabled, setEscape, setIcon, setLabel, setSource, setStyle, setValue
Methods inherited from class javax.faces.model.SelectItem
isNoSelectionOption, setNoSelectionOption
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.webmethods.caf.faces.data.ISelectItemProvider
getDescription, getIcon, getLabel, getStyle, getValue, isDisabled, isEscape
-
Field Details
-
STYLE_REGULAR_LOCALE
- See Also:
-
STYLE_INSTALLED_LOCALE
- See Also:
-
-
Constructor Details
-
LocaleSelectItemGroupProvider
public LocaleSelectItemGroupProvider()Default constructor. Loads language pack info and initializes the list of select items.
-
-
Method Details
-
getShowInstalledLangPacksOnly
public boolean getShowInstalledLangPacksOnly()Get the show installed language packs only value.- Returns:
- True if set to display only the installed language packs. False to display all available locales.
-
setShowInstalledLangPacksOnly
public void setShowInstalledLangPacksOnly(boolean showInstalledLangPacksOnly) Set the list of select items to only be installed language packs.- Parameters:
showInstalledLangPacksOnly
- True to display only the installed language packs. False to display all available locales.
-