public abstract class AbstractEditorStyleMenu extends SimpleMenu
SimpleMenu.GalleryGroup, SimpleMenu.GalleryItem, SimpleMenu.UnresolvedItemClientSideElement.Script, ClientSideElement.ScriptFile| Modifier and Type | Field and Description |
|---|---|
protected I18nizableText |
_autoGroupLabel
The label of auto group
|
protected String |
_autoItemClassName
JS class name for auto items
|
protected Map<String,Object> |
_defaultValues
The default value
|
protected HTMLEditorStyleExtensionPoint |
_htmlEditorStyleExtensionPoint
The HTMLEditorStyleExtensionPoint instance
|
protected I18nUtils |
_i18nUtils
I18n helper
|
_galleryItemManager, _galleryItems, _menuItemManager, _menuItems, _primaryMenuItem, _referencedClientSideElement, _ribbonControlManager, _smanager, _unresolvedMenuItems_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script| Constructor and Description |
|---|
AbstractEditorStyleMenu() |
| Modifier and Type | Method and Description |
|---|---|
protected SimpleMenu.GalleryGroup |
_configureGroupGallery(Configuration configuration)
Configure a group gallery
|
protected abstract StyleCategory |
_getStyleCategory(Map<String,Object> contextParameters)
Return the
StyleCategory to use |
private Map<String,Object> |
getParameters(Map<String,Object> parameters,
Map<String,Object> contextualParameters) |
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, _configureItemsMenu, _getGalleryItems, _getMenuItems, configure, getReferencedClientSideElements, getRights_configureParameters, _configureScript, configureInitialParameters_configureDependencies, _configureImports, _configureRights, _configureRightsMode, getDependencies, getId, getPluginName, getScripts, hasRight, setPluginInfo, toStringgetLogger, setLoggerprotected HTMLEditorStyleExtensionPoint _htmlEditorStyleExtensionPoint
protected I18nUtils _i18nUtils
protected Map<String,Object> _defaultValues
protected I18nizableText _autoGroupLabel
protected String _autoItemClassName
public AbstractEditorStyleMenu()
protected abstract StyleCategory _getStyleCategory(Map<String,Object> contextParameters)
StyleCategory to usecontextParameters - Contextual parameters transmitted by the environment.public void service(ServiceManager smanager) throws ServiceException
service in interface Serviceableservice in class SimpleMenuServiceExceptionpublic List<ClientSideElement.Script> getScripts(boolean ignoreRights, Map<String,Object> contextParameters)
ClientSideElementgetScripts in interface ClientSideElementgetScripts in class SimpleMenuignoreRights - True to ignore the rights verification.contextParameters - Contextuals parameters transmitted by the environment.private Map<String,Object> getParameters(Map<String,Object> parameters, Map<String,Object> contextualParameters)
protected SimpleMenu.GalleryGroup _configureGroupGallery(Configuration configuration) throws ConfigurationException
SimpleMenu_configureGroupGallery in class SimpleMenuconfiguration - the configurationConfigurationException - If the configuration has an issue