Class HTMLEditorStyleRichTextConfiguration
- java.lang.Object
-
- org.ametys.cms.clientsideelement.styles.HTMLEditorStyleRichTextConfiguration
-
- All Implemented Interfaces:
RichTextConfiguration
,Serviceable
public class HTMLEditorStyleRichTextConfiguration extends Object implements RichTextConfiguration, Serviceable
Declares all rich text configurations relative theHTMLEditorStyle
-
-
Constructor Summary
Constructors Constructor Description HTMLEditorStyleRichTextConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Map<RichTextConfigurationStyleGroup,List<RichTextConfigurationStyle>>>
getAvailableStyles(String category, Map<String,Object> contextualParameters)
Get the available styles classified by identifiers such as "table", "link"...Set<String>
getCategories()
Get the categories supported by this extensionSet<ClientSideElement>
getConvertors(String category, Map<String,Object> contextParameters)
Get the convertors used when richtext switch from code to view and from view to code.List<ClientSideElement.ScriptFile>
getCSSFiles(String category, Map<String,Object> contextParameters)
Get the CSS files required during the edition of the given category.Collection<RichTextConfigurationTag>
getHandledTags(String category, Map<String,Object> contextParameters)
Get the authorized tags for the given categorySet<ClientSideElement>
getValidators(String category, Map<String,Object> contextParameters)
Get the validators used during an edition of the rich text to ensure the value is correct.void
service(ServiceManager manager)
-
-
-
Constructor Detail
-
HTMLEditorStyleRichTextConfiguration
public HTMLEditorStyleRichTextConfiguration()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getCategories
public Set<String> getCategories()
Description copied from interface:RichTextConfiguration
Get the categories supported by this extension- Specified by:
getCategories
in interfaceRichTextConfiguration
- Returns:
- The categories supported. Cannot be null, but may be empty and of course contains the "" key for the default category.
-
getHandledTags
public Collection<RichTextConfigurationTag> getHandledTags(String category, Map<String,Object> contextParameters)
Description copied from interface:RichTextConfiguration
Get the authorized tags for the given category- Specified by:
getHandledTags
in interfaceRichTextConfiguration
- Parameters:
category
- The category. "" is the default category.contextParameters
- Contextuals parameters transmitted by the environment.- Returns:
- The tags supported (can be null). The key is the html tag name supported and the value is the associated value.
-
getCSSFiles
public List<ClientSideElement.ScriptFile> getCSSFiles(String category, Map<String,Object> contextParameters)
Description copied from interface:RichTextConfiguration
Get the CSS files required during the edition of the given category.- Specified by:
getCSSFiles
in interfaceRichTextConfiguration
- Parameters:
category
- The category. "" is the default category.contextParameters
- Contextuals parameters transmitted by the environment.- Returns:
- The CSS files requires. Can be null.
-
getConvertors
public Set<ClientSideElement> getConvertors(String category, Map<String,Object> contextParameters)
Description copied from interface:RichTextConfiguration
Get the convertors used when richtext switch from code to view and from view to code. Convertors can be differents by category.- Specified by:
getConvertors
in interfaceRichTextConfiguration
- Parameters:
category
- The category. "" is the default category.contextParameters
- Contextuals parameters transmitted by the environment.- Returns:
- The convertors to use. The class of the ClientSideElement must inherit the front-side convertor js interface. Can be null.
-
getValidators
public Set<ClientSideElement> getValidators(String category, Map<String,Object> contextParameters)
Description copied from interface:RichTextConfiguration
Get the validators used during an edition of the rich text to ensure the value is correct. Validators can be differents by category.- Specified by:
getValidators
in interfaceRichTextConfiguration
- Parameters:
category
- The category. "" is the default category.contextParameters
- Contextuals parameters transmitted by the environment.- Returns:
- The validators to use. The class of the ClientSideElement must inherit the front-side validor js interface. Can be null.
-
getAvailableStyles
public Map<String,Map<RichTextConfigurationStyleGroup,List<RichTextConfigurationStyle>>> getAvailableStyles(String category, Map<String,Object> contextualParameters)
Description copied from interface:RichTextConfiguration
Get the available styles classified by identifiers such as "table", "link"...- Specified by:
getAvailableStyles
in interfaceRichTextConfiguration
- Parameters:
category
- The category. "" is the default category.contextualParameters
- Contextuals parameters transmitted by the environment.- Returns:
- The available styles. Can be null.
-
-