Package org.ametys.web.clientsideelement
Class LanguageMenu
-
- All Implemented Interfaces:
ClientSideElement
,MenuClientSideElement
,LogEnabled
,PluginAware
,Configurable
,Serviceable
public class LanguageMenu extends LanguageMenu
Menu that lists the sitemaps/languages available in the current site.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.ametys.core.ui.SimpleMenu
SimpleMenu.GalleryGroup, SimpleMenu.GalleryItem, SimpleMenu.UnresolvedItem
-
Nested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
-
-
Field Summary
Fields Modifier and Type Field Description protected WebLanguagesManager
_webLanguagesManager
The Web languages manager-
Fields inherited from class org.ametys.cms.clientsideelement.LanguageMenu
_i18nUtils, _languagesManager, _RESOURCES_PLUGIN
-
Fields inherited from class org.ametys.core.ui.SimpleMenu
_galleryItems, _menuItemManager, _menuItems, _primaryMenuItem, _ribbonControlManager, _smanager, _unresolvedMenuItems
-
Fields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
-
-
Constructor Summary
Constructors Constructor Description LanguageMenu()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,Language>
getAvailableLanguages(Map<String,Object> contextualParameters)
Get the available languagesvoid
service(ServiceManager serviceManager)
-
Methods inherited from class org.ametys.cms.clientsideelement.LanguageMenu
_getGalleryItems, _getLanguageItemConfiguration, getScripts
-
Methods inherited from class org.ametys.core.ui.SimpleMenu
_addDependencies, _configureClass, _configureGalleries, _configureGroupGallery, _configureItemsMenu, _getGalleryItemManager, _getGalleryItems, _getMenuItems, configure, getReferencedClientSideElements, getRights
-
Methods inherited from class org.ametys.core.ui.StaticClientSideElement
_configureParameters, _configureScript, configureInitialParameters
-
Methods inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, getDependencies, getId, getPluginName, getScripts, hasRight, setPluginInfo, toString
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Field Detail
-
_webLanguagesManager
protected WebLanguagesManager _webLanguagesManager
The Web languages manager
-
-
Constructor Detail
-
LanguageMenu
public LanguageMenu()
-
-
Method Detail
-
service
public void service(ServiceManager serviceManager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classLanguageMenu
- Throws:
ServiceException
-
getAvailableLanguages
protected Map<String,Language> getAvailableLanguages(Map<String,Object> contextualParameters)
Description copied from class:LanguageMenu
Get the available languages- Overrides:
getAvailableLanguages
in classLanguageMenu
- Parameters:
contextualParameters
- The contextual parameters- Returns:
- the available languages
-
-