Package org.ametys.cms.clientsideelement
Class StaticMenu
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.core.ui.StaticFileImportsClientSideElement
-
- org.ametys.core.ui.StaticClientSideElement
-
- org.ametys.cms.clientsideelement.StaticMenu
-
- All Implemented Interfaces:
ClientSideElement
,LogEnabled
,PluginAware
,Configurable
,Serviceable
public class StaticMenu extends StaticClientSideElement
This element creates a control button with a menu
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
-
-
Field Summary
Fields Modifier and Type Field Description private int
_galleryIndex
private int
_menuIndex
-
Fields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
-
-
Constructor Summary
Constructors Constructor Description StaticMenu()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
_configureGalleries(Configuration configuration)
Configure the galleriesprotected void
_configureGroupsGallery(Configuration configuration)
Configure the groups galleryprotected void
_configureItem(Configuration configuration, String prefix)
Configure the item parametersprotected void
_configureItemsGallery(Configuration configuration, String group)
Configure the gallery itemsprotected void
_configureItemsMenu(Configuration configuration)
Configure the items menuvoid
configure(Configuration configuration)
-
Methods inherited from class org.ametys.core.ui.StaticClientSideElement
_configureClass, _configureParameters, _configureScript, configureInitialParameters
-
Methods inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, service, setPluginInfo, toString
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Field Detail
-
_galleryIndex
private int _galleryIndex
-
_menuIndex
private int _menuIndex
-
-
Constructor Detail
-
StaticMenu
public StaticMenu()
-
-
Method Detail
-
configure
public void configure(Configuration configuration) throws ConfigurationException
- Specified by:
configure
in interfaceConfigurable
- Overrides:
configure
in classStaticFileImportsClientSideElement
- Throws:
ConfigurationException
-
_configureGalleries
protected void _configureGalleries(Configuration configuration) throws ConfigurationException
Configure the galleries- Parameters:
configuration
- the configuration- Throws:
ConfigurationException
- If the configuration has an issue
-
_configureGroupsGallery
protected void _configureGroupsGallery(Configuration configuration) throws ConfigurationException
Configure the groups gallery- Parameters:
configuration
- the configuration- Throws:
ConfigurationException
- If the configuration has an issue
-
_configureItemsGallery
protected void _configureItemsGallery(Configuration configuration, String group) throws ConfigurationException
Configure the gallery items- Parameters:
configuration
- the configurationgroup
- the group gallery- Throws:
ConfigurationException
- If the configuration has an issue
-
_configureItemsMenu
protected void _configureItemsMenu(Configuration configuration) throws ConfigurationException
Configure the items menu- Parameters:
configuration
- the configuration- Throws:
ConfigurationException
- If the configuration has an issue
-
_configureItem
protected void _configureItem(Configuration configuration, String prefix) throws ConfigurationException
Configure the item parameters- Parameters:
configuration
- the item configurationprefix
- the item prefix- Throws:
ConfigurationException
- If the configuration has an issue
-
-