public class DesignsMenu extends SimpleMenu
StaticClientSideElement
for design of modelSimpleMenu.GalleryGroup, SimpleMenu.GalleryItem, SimpleMenu.UnresolvedItem
ClientSideElement.Script, ClientSideElement.ScriptFile
Modifier and Type | Field and Description |
---|---|
private boolean |
_designsInitialized |
private ModelDesignsManager |
_designsManager |
private I18nUtils |
_i18nUtils |
private SkinModelsManager |
_modelsManager |
_galleryItemManager, _galleryItems, _menuItemManager, _menuItems, _primaryMenuItem, _referencedClientSideElement, _ribbonControlManager, _smanager, _unresolvedMenuItems
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
Constructor and Description |
---|
DesignsMenu() |
Modifier and Type | Method and Description |
---|---|
protected Configuration |
_getDesignConfiguration(String id,
ModelDesignsManager.Design design,
String modelName)
Get the configuration of the model item
|
protected void |
_getGalleryItems(Map<String,Object> parameters,
Map<String,Object> contextualParameters)
Get the gallery items
|
private void |
_lazyInitializeDesignsGallery()
Lazy initialization of the design gallery
|
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) |
_addDependencies, _configureClass, _configureGalleries, _configureGroupGallery, _configureItemsMenu, _getMenuItems, configure, getReferencedClientSideElements, getRights
_configureParameters, _configureScript, configureInitialParameters
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, getDependencies, getId, getPluginName, getScripts, hasRight, setPluginInfo, toString
getLogger, setLogger
private ModelDesignsManager _designsManager
private boolean _designsInitialized
private SkinModelsManager _modelsManager
private I18nUtils _i18nUtils
public DesignsMenu()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class SimpleMenu
ServiceException
public List<ClientSideElement.Script> getScripts(boolean ignoreRights, Map<String,Object> contextParameters)
ClientSideElement
getScripts
in interface ClientSideElement
getScripts
in class SimpleMenu
ignoreRights
- True to ignore the rights verification.contextParameters
- Contextuals parameters transmitted by the environment.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 _lazyInitializeDesignsGallery() throws ConfigurationException, ProcessingException
ConfigurationException
- if the design configuration is wrongProcessingException
- if an error occurs when retrieving the modelsprotected Configuration _getDesignConfiguration(String id, ModelDesignsManager.Design design, String modelName)
id
- The id of itemdesign
- The designmodelName
- The model name