public class StaticHTMLEditorStyleExtension extends AbstractLogEnabled implements HTMLEditorStyleExtensionPoint, Configurable, Serviceable, PluginAware
Modifier and Type | Field and Description |
---|---|
protected String |
_featureName
The feature that declared the instance
|
protected StyleCategory |
_imageStyleCategory
The values of the file
|
protected StyleCategory |
_linkStyleCategory
The values of the file
|
protected StyleCategory |
_olStyleCategory
The values of the file
|
protected StyleCategory |
_paraStyleCategory
The values of the file
|
protected String |
_pluginName
The plugin that declared the instance
|
protected SourceResolver |
_resolver
Excalibur source resolver
|
protected StyleCategory |
_tableStyleCategory
The values of the file
|
protected StyleCategory |
_ulStyleCategory
The values of the file
|
protected static String[] |
IMAGE_DEFAULT_ICONS
Default icons style for image
|
protected static String[] |
LINK_DEFAULT_ICONS
Default icons style for link
|
protected static String[] |
OL_DEFAULT_ICONS
Default icons style for ordered list
|
protected static String[] |
TABLE_DEFAULT_ICONS
Default icons style for table
|
protected static String[] |
UL_DEFAULT_ICONS
Default icons style for unordered list
|
ROLE
Constructor and Description |
---|
StaticHTMLEditorStyleExtension() |
Modifier and Type | Method and Description |
---|---|
protected void |
_configure(Configuration configuration,
String defaultCatalogue,
Map<String,Object> contextParameters)
Configure this instance upon a configuration
|
protected Style |
_configureStyle(Configuration configuration,
String defaultCatalogue,
String[] defaultIcons,
Map<String,Object> contextParameters)
Configure a style
|
protected StyleCategory |
_configureStyleCategory(Configuration styleConfiguration,
String defaultCatalogue,
String[] defaultIcons,
Map<String,Object> contextParameters)
Configure this instance upon the style part of a configuration
|
protected String |
_getImport(Configuration configuration,
Map<String,Object> contextParameters)
Determine an url from a configuration node.
|
void |
configure(Configuration configuration) |
StyleCategory |
getImage(Map<String,Object> contextualParameters)
Get the list of styles for images
|
StyleCategory |
getLink(Map<String,Object> contextualParameters)
Get the list of styles for link
|
StyleCategory |
getOrderedList(Map<String,Object> contextualParameters)
Get the list of styles for ordered lists
|
StyleCategory |
getPara(Map<String,Object> contextualParameters)
Get the list of styles for paragraphs
|
StyleCategory |
getTable(Map<String,Object> contextualParameters)
Get the list of styles for tables
|
StyleCategory |
getUnorderedList(Map<String,Object> contextualParameters)
Get the list of styles for unordered lists
|
void |
service(ServiceManager manager) |
void |
setPluginInfo(String pluginName,
String featureName,
String id)
Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level. |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
protected static final String[] TABLE_DEFAULT_ICONS
protected static final String[] LINK_DEFAULT_ICONS
protected static final String[] IMAGE_DEFAULT_ICONS
protected static final String[] UL_DEFAULT_ICONS
protected static final String[] OL_DEFAULT_ICONS
protected SourceResolver _resolver
protected StyleCategory _paraStyleCategory
protected StyleCategory _tableStyleCategory
protected StyleCategory _linkStyleCategory
protected StyleCategory _imageStyleCategory
protected StyleCategory _ulStyleCategory
protected StyleCategory _olStyleCategory
protected String _pluginName
protected String _featureName
public StaticHTMLEditorStyleExtension()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public void setPluginInfo(String pluginName, String featureName, String id)
PluginAware
setPluginInfo
in interface PluginAware
pluginName
- Unique identifier for the plugin hosting the extensionfeatureName
- Unique feature identifier (unique for a given pluginName)id
- Unique identifier of this componentpublic void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
protected void _configure(Configuration configuration, String defaultCatalogue, Map<String,Object> contextParameters) throws ConfigurationException
configuration
- The configurationdefaultCatalogue
- The default i18n catalogue to usecontextParameters
- Contextuals parameters transmitted by the environment.ConfigurationException
- If the configuration is incorrectprotected StyleCategory _configureStyleCategory(Configuration styleConfiguration, String defaultCatalogue, String[] defaultIcons, Map<String,Object> contextParameters) throws ConfigurationException
styleConfiguration
- The style part of the configurationdefaultCatalogue
- The default i18n catalogue to usedefaultIcons
- the path to the button's default icons in small, medium and large sizecontextParameters
- Contextuals parameters transmitted by the environment.ConfigurationException
- If the configuration is incorrectprotected String _getImport(Configuration configuration, Map<String,Object> contextParameters)
configuration
- Read the optional plugin attribute and concatenate it to the value of the node. Can be nullcontextParameters
- Contextuals parameters transmitted by the environment.protected Style _configureStyle(Configuration configuration, String defaultCatalogue, String[] defaultIcons, Map<String,Object> contextParameters) throws ConfigurationException
configuration
- The style configurationdefaultCatalogue
- The default i18n catalogue to usedefaultIcons
- the path to the button's default icons in small, medium and large sizecontextParameters
- Contextual parameters transmitted by the environment.ConfigurationException
- If the configuration is incorrectpublic StyleCategory getPara(Map<String,Object> contextualParameters)
HTMLEditorStyleExtensionPoint
getPara
in interface HTMLEditorStyleExtensionPoint
contextualParameters
- Contextuals parameters transmitted by the environment.public StyleCategory getTable(Map<String,Object> contextualParameters)
HTMLEditorStyleExtensionPoint
getTable
in interface HTMLEditorStyleExtensionPoint
contextualParameters
- Contextuals parameters transmitted by the environment.public StyleCategory getLink(Map<String,Object> contextualParameters)
HTMLEditorStyleExtensionPoint
getLink
in interface HTMLEditorStyleExtensionPoint
contextualParameters
- Contextuals parameters transmitted by the environment.public StyleCategory getImage(Map<String,Object> contextualParameters)
HTMLEditorStyleExtensionPoint
getImage
in interface HTMLEditorStyleExtensionPoint
contextualParameters
- Contextuals parameters transmitted by the environment.public StyleCategory getUnorderedList(Map<String,Object> contextualParameters)
HTMLEditorStyleExtensionPoint
getUnorderedList
in interface HTMLEditorStyleExtensionPoint
contextualParameters
- Contextuals parameters transmitted by the environment.public StyleCategory getOrderedList(Map<String,Object> contextualParameters)
HTMLEditorStyleExtensionPoint
getOrderedList
in interface HTMLEditorStyleExtensionPoint
contextualParameters
- Contextuals parameters transmitted by the environment.