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
Modifier 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 SiteManager
The sites managerprotected SkinConfigurationHelper
The helper for inheritable skin configurationprotected SkinsManager
The skins managerprotected SourceResolver
The 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_ICONS
Fields inherited from interface org.ametys.cms.clientsideelement.styles.HTMLEditorStyle
ROLE
-
Constructor Summary
-
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 skinvoid
configure
(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 listsvoid
service
(ServiceManager manager) Methods inherited from class org.ametys.cms.clientsideelement.styles.StaticHTMLEditorContentStyle
_configure, _configureStyle, _configureStyleCategory, getCategories, setPluginInfo
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
service
in interfaceServiceable
- Overrides:
service
in classStaticHTMLEditorContentStyle
- Throws:
ServiceException
-
configure
- Specified by:
configure
in interfaceConfigurable
- Overrides:
configure
in classStaticHTMLEditorContentStyle
- Throws:
ConfigurationException
-
_getImport
Description copied from class:StaticHTMLEditorContentStyle
Determine an url from a configuration node.- Overrides:
_getImport
in 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:HTMLEditorStyle
Get the list of styles for paragraphs- Specified by:
getPara
in interfaceHTMLEditorStyle
- Overrides:
getPara
in classStaticHTMLEditorContentStyle
- Parameters:
category
- The richtext categorycontextualParameters
- Contextuals parameters transmitted by the environment.- Returns:
- A category. Can be null.
-
getImage
Description copied from interface:HTMLEditorStyle
Get the list of styles for images- Specified by:
getImage
in interfaceHTMLEditorStyle
- Overrides:
getImage
in classStaticHTMLEditorContentStyle
- Parameters:
category
- The richtext categorycontextualParameters
- Contextuals parameters transmitted by the environment.- Returns:
- A category. Can be null.
-
getLink
Description copied from interface:HTMLEditorStyle
Get the list of styles for link- Specified by:
getLink
in interfaceHTMLEditorStyle
- Overrides:
getLink
in classStaticHTMLEditorContentStyle
- Parameters:
category
- The richtext categorycontextualParameters
- Contextuals parameters transmitted by the environment.- Returns:
- A category. Can be null.
-
getOrderedList
Description copied from interface:HTMLEditorStyle
Get the list of styles for ordered lists- Specified by:
getOrderedList
in interfaceHTMLEditorStyle
- Overrides:
getOrderedList
in classStaticHTMLEditorContentStyle
- Parameters:
category
- The richtext categorycontextualParameters
- Contextuals parameters transmitted by the environment.- Returns:
- A category. Can be null.
-
getTable
Description copied from interface:HTMLEditorStyle
Get the list of styles for tables- Specified by:
getTable
in interfaceHTMLEditorStyle
- Overrides:
getTable
in classStaticHTMLEditorContentStyle
- Parameters:
category
- The richtext categorycontextualParameters
- Contextuals parameters transmitted by the environment.- Returns:
- A category. Can be null.
-
getUnorderedList
Description copied from interface:HTMLEditorStyle
Get the list of styles for unordered lists- Specified by:
getUnorderedList
in interfaceHTMLEditorStyle
- Overrides:
getUnorderedList
in 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
-