public class SimpleMenu extends StaticClientSideElement implements MenuClientSideElement
| Modifier and Type | Class and Description | 
|---|---|
class  | 
SimpleMenu.GalleryGroup
Class representing a gallery group 
 | 
class  | 
SimpleMenu.GalleryItem
Class representing a gallery item 
 | 
protected class  | 
SimpleMenu.UnresolvedItem
The unresolved item 
 | 
ClientSideElement.Script, ClientSideElement.ScriptFile| Modifier and Type | Field and Description | 
|---|---|
protected ThreadSafeComponentManager<ClientSideElement> | 
_galleryItemManager
The client side element component manager for gallery items. 
 | 
protected List<SimpleMenu.GalleryItem> | 
_galleryItems
The gallery items 
 | 
protected ThreadSafeComponentManager<ClientSideElement> | 
_menuItemManager
The client side element component manager for menu items. 
 | 
protected List<ClientSideElement> | 
_menuItems
The menu items 
 | 
protected ClientSideElement | 
_primaryMenuItem
The primary menu item 
 | 
protected List<ClientSideElement> | 
_referencedClientSideElement
The referenced client side elements 
 | 
protected RibbonControlsManager | 
_ribbonControlManager
The ribbon control manager 
 | 
protected ServiceManager | 
_smanager
The service manager 
 | 
protected List<SimpleMenu.UnresolvedItem> | 
_unresolvedMenuItems
The unresolved menu items 
 | 
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script| Constructor and Description | 
|---|
SimpleMenu()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
_addDependencies(Map<String,List<String>> additionalDependencies)
Add additional dependencies to the Menu, such as dependencies inherited from its menu items or gallery items. 
 | 
protected String | 
_configureClass(Configuration configuration)
Configure the js class name 
 | 
protected void | 
_configureGalleries(Configuration configuration)
Configure the galleries 
 | 
protected SimpleMenu.GalleryGroup | 
_configureGroupGallery(Configuration configuration)
Configure a group gallery 
 | 
protected void | 
_configureItemsMenu(Configuration configuration)
Configure the items menu 
 | 
protected void | 
_getGalleryItems(Map<String,Object> parameters,
                Map<String,Object> contextualParameters)
Get the gallery items 
 | 
protected void | 
_getMenuItems(Map<String,Object> parameters,
             Map<String,Object> contextualParameters)
Get the menu items 
 | 
private void | 
_resolveMenuItems()  | 
void | 
configure(Configuration configuration)  | 
List<ClientSideElement> | 
getReferencedClientSideElements()
This method returns the  
ClientSideElement referenced by the menu through its menu or gallery items | 
Map<String,String> | 
getRights(Map<String,Object> contextParameters)
This method return the right that will be needed on client side. 
 | 
List<ClientSideElement.Script> | 
getScripts(boolean ignoreRights,
          Map<String,Object> contextParameters)
This method return the scripts that will be used on client side. 
 | 
void | 
service(ServiceManager smanager)  | 
_configureParameters, _configureScript, configureInitialParameters_configureDependencies, _configureImports, _configureRights, _configureRightsMode, getDependencies, getId, getPluginName, getScripts, hasRight, setPluginInfo, toStringgetLogger, setLoggerprotected ThreadSafeComponentManager<ClientSideElement> _menuItemManager
protected ThreadSafeComponentManager<ClientSideElement> _galleryItemManager
protected RibbonControlsManager _ribbonControlManager
protected ServiceManager _smanager
protected List<ClientSideElement> _menuItems
protected List<SimpleMenu.GalleryItem> _galleryItems
protected ClientSideElement _primaryMenuItem
protected List<SimpleMenu.UnresolvedItem> _unresolvedMenuItems
protected List<ClientSideElement> _referencedClientSideElement
public SimpleMenu()
public void service(ServiceManager smanager) throws ServiceException
service in interface Serviceableservice in class StaticFileImportsClientSideElementServiceExceptionpublic void configure(Configuration configuration) throws ConfigurationException
configure in interface Configurableconfigure in class StaticFileImportsClientSideElementConfigurationExceptionprotected String _configureClass(Configuration configuration) throws ConfigurationException
StaticClientSideElement_configureClass in class StaticClientSideElementconfiguration - The configuration on action tagConfigurationException - If an error occurspublic List<ClientSideElement.Script> getScripts(boolean ignoreRights, Map<String,Object> contextParameters)
ClientSideElementgetScripts in interface ClientSideElementgetScripts in class StaticFileImportsClientSideElementignoreRights - True to ignore the rights verification.contextParameters - Contextuals parameters transmitted by the environment.public Map<String,String> getRights(Map<String,Object> contextParameters)
ClientSideElementgetRights in interface ClientSideElementgetRights in class StaticFileImportsClientSideElementcontextParameters - Contextuals parameters transmitted by the environment.protected void _getGalleryItems(Map<String,Object> parameters, Map<String,Object> contextualParameters)
parameters - Contextual the parameters given to the control script class.contextualParameters - Contextual parameters transmitted by the environment.protected void _getMenuItems(Map<String,Object> parameters, Map<String,Object> contextualParameters)
parameters - Contextual the parameters given to the control script class.contextualParameters - Contextual parameters transmitted by the environment.public List<ClientSideElement> getReferencedClientSideElements()
MenuClientSideElementClientSideElement referenced by the menu through its menu or gallery itemsgetReferencedClientSideElements in interface MenuClientSideElementprotected void _configureGalleries(Configuration configuration) throws ConfigurationException
configuration - the configurationConfigurationException - If the configuration has an issueprotected SimpleMenu.GalleryGroup _configureGroupGallery(Configuration configuration) throws ConfigurationException
configuration - the configurationConfigurationException - If the configuration has an issueprotected void _configureItemsMenu(Configuration configuration) throws ConfigurationException
configuration - the configurationConfigurationException - If the configuration has an issueprivate void _resolveMenuItems() throws Exception
Exceptionprotected void _addDependencies(Map<String,List<String>> additionalDependencies) throws ConfigurationException
additionalDependencies - The dependencies to addConfigurationException - If an error occurs