Class SkinHTMLEditorContentStyle
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.ametys.cms.clientsideelement.styles.StaticHTMLEditorContentStyle
org.ametys.web.clientsideelement.styles.SkinHTMLEditorContentStyle
- All Implemented Interfaces:
 HTMLEditorStyle,PluginAware,Configurable,LogEnabled,Serviceable
Based on a configuration like the StaticHTMLEditorStyleExtension but the file is located inside the current skin directory (skin/conf/edition-styles.xml).
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<String,StyleCategory> The assocation skinId Style ; to know for a given skin its styleThe assocation skinId lastUpdateDate ; to know for a given skin when its conf file was read for the last timeprotected Map<String,StyleCategory> The assocation skinId Style ; to know for a given skin its styleprotected Map<String,StyleCategory> The assocation skinId Style ; to know for a given skin its styleprotected Map<String,StyleCategory> The assocation skinId Style ; to know for a given skin its styleprotected SiteManagerThe sites managerprotected SkinConfigurationHelperThe helper for inheritable skin configurationprotected SkinsManagerThe skins managerprotected SourceResolverThe excalibur source resolverprotected Map<String,StyleCategory> The assocation skinId Style ; to know for a given skin its styleprotected Map<String,StyleCategory> The assocation skinId Style ; to know for a given skin its styleFields inherited from class org.ametys.cms.clientsideelement.styles.StaticHTMLEditorContentStyle
_featureName, _imageStyleCategory, _linkStyleCategory, _olStyleCategory, _paraStyleCategory, _pluginName, _resolver, _tableStyleCategory, _ulStyleCategory, IMAGE_DEFAULT_ICONS, LINK_DEFAULT_ICONS, OL_DEFAULT_ICONS, TABLE_DEFAULT_ICONS, UL_DEFAULT_ICONSFields inherited from interface org.ametys.cms.clientsideelement.styles.HTMLEditorStyle
ROLE - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected void_defaultValues(String skinId) Set default values for the given skinprotected String_getImport(Configuration configuration, Map<String, Object> contextualParameters) Determine an url from a configuration node.protected String_updateStyleCategories(Map<String, Object> contextualParameters) Update if necessary the values associated with the current skinvoidconfigure(Configuration configuration) Get the list of styles for imagesGet the list of styles for linkgetOrderedList(String category, Map<String, Object> contextualParameters) Get the list of styles for ordered listsGet the list of styles for paragraphsGet the list of styles for tablesgetUnorderedList(String category, Map<String, Object> contextualParameters) Get the list of styles for unordered listsvoidservice(ServiceManager manager) Methods inherited from class org.ametys.cms.clientsideelement.styles.StaticHTMLEditorContentStyle
_configure, _configureStyle, _configureStyleCategory, getCategories, setPluginInfoMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.cms.clientsideelement.styles.HTMLEditorStyle
getBackOfficeCSSFiles, getInlineEditorCSSFiles 
- 
Field Details
- 
_lastUpdates
The assocation skinId lastUpdateDate ; to know for a given skin when its conf file was read for the last time - 
_paraStyleCategories
The assocation skinId Style ; to know for a given skin its style - 
_tableStyleCategories
The assocation skinId Style ; to know for a given skin its style - 
_imageStyleCategories
The assocation skinId Style ; to know for a given skin its style - 
_linkStyleCategories
The assocation skinId Style ; to know for a given skin its style - 
_ulStyleCategories
The assocation skinId Style ; to know for a given skin its style - 
_olStyleCategories
The assocation skinId Style ; to know for a given skin its style - 
_sourceResolver
The excalibur source resolver - 
_siteManager
The sites manager - 
_skinsManager
The skins manager - 
_skinConfigurationHelper
The helper for inheritable skin configuration 
 - 
 - 
Constructor Details
- 
SkinHTMLEditorContentStyle
public SkinHTMLEditorContentStyle() 
 - 
 - 
Method Details
- 
service
- Specified by:
 servicein interfaceServiceable- Overrides:
 servicein classStaticHTMLEditorContentStyle- Throws:
 ServiceException
 - 
configure
- Specified by:
 configurein interfaceConfigurable- Overrides:
 configurein classStaticHTMLEditorContentStyle- Throws:
 ConfigurationException
 - 
_getImport
Description copied from class:StaticHTMLEditorContentStyleDetermine an url from a configuration node.- Overrides:
 _getImportin classStaticHTMLEditorContentStyle- Parameters:
 configuration- Read the optional plugin attribute and concatenate it to the value of the node. Can be nullcontextualParameters- Contextuals parameters transmitted by the environment.- Returns:
 - The non-null path to the plugin resource
 
 - 
getPara
Description copied from interface:HTMLEditorStyleGet the list of styles for paragraphs- Specified by:
 getParain interfaceHTMLEditorStyle- Overrides:
 getParain classStaticHTMLEditorContentStyle- Parameters:
 category- The richtext categorycontextualParameters- Contextuals parameters transmitted by the environment.- Returns:
 - A category. Can be null.
 
 - 
getImage
Description copied from interface:HTMLEditorStyleGet the list of styles for images- Specified by:
 getImagein interfaceHTMLEditorStyle- Overrides:
 getImagein classStaticHTMLEditorContentStyle- Parameters:
 category- The richtext categorycontextualParameters- Contextuals parameters transmitted by the environment.- Returns:
 - A category. Can be null.
 
 - 
getLink
Description copied from interface:HTMLEditorStyleGet the list of styles for link- Specified by:
 getLinkin interfaceHTMLEditorStyle- Overrides:
 getLinkin classStaticHTMLEditorContentStyle- Parameters:
 category- The richtext categorycontextualParameters- Contextuals parameters transmitted by the environment.- Returns:
 - A category. Can be null.
 
 - 
getOrderedList
Description copied from interface:HTMLEditorStyleGet the list of styles for ordered lists- Specified by:
 getOrderedListin interfaceHTMLEditorStyle- Overrides:
 getOrderedListin classStaticHTMLEditorContentStyle- Parameters:
 category- The richtext categorycontextualParameters- Contextuals parameters transmitted by the environment.- Returns:
 - A category. Can be null.
 
 - 
getTable
Description copied from interface:HTMLEditorStyleGet the list of styles for tables- Specified by:
 getTablein interfaceHTMLEditorStyle- Overrides:
 getTablein classStaticHTMLEditorContentStyle- Parameters:
 category- The richtext categorycontextualParameters- Contextuals parameters transmitted by the environment.- Returns:
 - A category. Can be null.
 
 - 
getUnorderedList
Description copied from interface:HTMLEditorStyleGet the list of styles for unordered lists- Specified by:
 getUnorderedListin interfaceHTMLEditorStyle- Overrides:
 getUnorderedListin classStaticHTMLEditorContentStyle- Parameters:
 category- The richtext categorycontextualParameters- Contextuals parameters transmitted by the environment.- Returns:
 - A category. Can be null.
 
 - 
_updateStyleCategories
Update if necessary the values associated with the current skin- Parameters:
 contextualParameters- Contextuals parameters transmitted by the environment.- Returns:
 - The current skin
 
 - 
_defaultValues
Set default values for the given skin- Parameters:
 skinId- The skin
 
 -