public class SkinLanguageMenu extends SimpleMenu
StaticClientSideElement
for selection of language for a skinSimpleMenu.GalleryGroup, SimpleMenu.GalleryItem, SimpleMenu.UnresolvedItem
ClientSideElement.Script, ClientSideElement.ScriptFile
Modifier and Type | Field and Description |
---|---|
private I18nUtils |
_i18nUtils |
private LanguagesManager |
_languageManager |
private boolean |
_languagesInitialized |
_galleryItemManager, _galleryItems, _menuItemManager, _menuItems, _primaryMenuItem, _referencedClientSideElement, _ribbonControlManager, _smanager, _unresolvedMenuItems
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
Constructor and Description |
---|
SkinLanguageMenu() |
Modifier and Type | Method and Description |
---|---|
protected void |
_getGalleryItems(Map<String,Object> parameters,
Map<String,Object> contextualParameters)
Get the gallery items
|
protected Configuration |
_getLanguageConfiguration(String id,
Language language)
Get the configuration of the language item
|
private void |
_lazyInitializeLanguageGallery()
Lazy initialization of the language gallery
|
void |
service(ServiceManager smanager) |
_addDependencies, _configureClass, _configureGalleries, _configureGroupGallery, _configureItemsMenu, _getMenuItems, configure, getReferencedClientSideElements, getRights, getScripts
_configureParameters, _configureScript, configureInitialParameters
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, getDependencies, getId, getPluginName, getScripts, hasRight, setPluginInfo, toString
getLogger, setLogger
private LanguagesManager _languageManager
private boolean _languagesInitialized
private I18nUtils _i18nUtils
public SkinLanguageMenu()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class SimpleMenu
ServiceException
protected void _getGalleryItems(Map<String,Object> parameters, Map<String,Object> contextualParameters)
SimpleMenu
_getGalleryItems
in class SimpleMenu
parameters
- Contextual the parameters given to the control script class.contextualParameters
- Contextual parameters transmitted by the environment.private void _lazyInitializeLanguageGallery() throws ConfigurationException
ConfigurationException
- if the language configuration is wrongprotected Configuration _getLanguageConfiguration(String id, Language language)
id
- The id of itemlanguage
- The language