public class HTMLEditorStyleRichTextConfiguration extends Object implements RichTextConfiguration, Serviceable
HTMLEditorStyleExtensionPoint
Modifier and Type | Field and Description |
---|---|
private HTMLEditorStyleExtensionPoint |
_htmlEditorStyleExtensionPoint |
private static Map<String,I18nizableText> |
STYLE_GROUP_LABELS |
Constructor and Description |
---|
HTMLEditorStyleRichTextConfiguration() |
Modifier and Type | Method and 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 extension
|
Set<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 category
|
Set<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) |
private static final Map<String,I18nizableText> STYLE_GROUP_LABELS
private HTMLEditorStyleExtensionPoint _htmlEditorStyleExtensionPoint
public HTMLEditorStyleRichTextConfiguration()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public Set<String> getCategories()
RichTextConfiguration
getCategories
in interface RichTextConfiguration
public Collection<RichTextConfigurationTag> getHandledTags(String category, Map<String,Object> contextParameters)
RichTextConfiguration
getHandledTags
in interface RichTextConfiguration
category
- The category. "" is the default category.contextParameters
- Contextuals parameters transmitted by the environment.public List<ClientSideElement.ScriptFile> getCSSFiles(String category, Map<String,Object> contextParameters)
RichTextConfiguration
getCSSFiles
in interface RichTextConfiguration
category
- The category. "" is the default category.contextParameters
- Contextuals parameters transmitted by the environment.public Set<ClientSideElement> getConvertors(String category, Map<String,Object> contextParameters)
RichTextConfiguration
getConvertors
in interface RichTextConfiguration
category
- The category. "" is the default category.contextParameters
- Contextuals parameters transmitted by the environment.public Set<ClientSideElement> getValidators(String category, Map<String,Object> contextParameters)
RichTextConfiguration
getValidators
in interface RichTextConfiguration
category
- The category. "" is the default category.contextParameters
- Contextuals parameters transmitted by the environment.public Map<String,Map<RichTextConfigurationStyleGroup,List<RichTextConfigurationStyle>>> getAvailableStyles(String category, Map<String,Object> contextualParameters)
RichTextConfiguration
getAvailableStyles
in interface RichTextConfiguration
category
- The category. "" is the default category.contextualParameters
- Contextuals parameters transmitted by the environment.