public static class StaticRichTextConfiguration.StaticRichTextConfigurationStyle extends Object implements RichTextConfigurationStyle
RichTextConfigurationStyle
Modifier and Type | Field and Description |
---|---|
protected String |
_buttonCSSClass
The backoffice css class
|
protected String |
_buttonLargeIcon
The icon for the button in small
|
protected String |
_buttonMediumIcon
The icon for the button in small
|
protected String |
_buttonSmallIcon
The icon for the button in small
|
protected String |
_className
The editor css class name
|
protected I18nizableText |
_description
The description
|
protected I18nizableText |
_label
The label
|
protected String |
_tagName
The tag name
|
Modifier | Constructor and Description |
---|---|
protected |
StaticRichTextConfigurationStyle(Configuration configuration,
boolean isRenderingOnlyAClass,
String pluginName,
Logger logger)
Create by configuration
|
|
StaticRichTextConfigurationStyle(String tagNameAndClassName,
I18nizableText label,
I18nizableText description,
String buttonCSSClass,
String buttonSmallIcon,
String buttonMediumIcon,
String buttonLargeIcon,
boolean isRenderingOnlyAClass)
Creates by values
|
Modifier and Type | Method and Description |
---|---|
String |
getButtonCSSClass()
Get the optional css to apply to the button.
The CSS file declaring this class has to be loaded separately. |
I18nizableText |
getButtonDescription()
Get the style description.
|
I18nizableText |
getButtonLabel()
Get the style label.
|
String |
getButtonLargeIcon()
Get the optional image to set on the button.
|
String |
getButtonMediumIcon()
Get the optional image to set on the button.
|
String |
getButtonSmallIcon()
Get the optional image to set on the button.
|
String |
getClassName()
Optionally a style can specify a CSS class name to use.
The 'class' attribute has to be separately authorized and this particular value also. |
String |
getTagName()
Optionally a style can specify a tag name to use.
|
protected String _className
protected I18nizableText _label
protected I18nizableText _description
protected String _buttonCSSClass
protected String _buttonSmallIcon
protected String _buttonMediumIcon
protected String _buttonLargeIcon
protected StaticRichTextConfigurationStyle(Configuration configuration, boolean isRenderingOnlyAClass, String pluginName, Logger logger) throws ConfigurationException
configuration
- The tag configurationisRenderingOnlyAClass
- In configuration rendering attribute can be only a class or a tag with an option ".class"pluginName
- The name of the plugin where it was declaredlogger
- The loggerConfigurationException
- If an error occurredpublic StaticRichTextConfigurationStyle(String tagNameAndClassName, I18nizableText label, I18nizableText description, String buttonCSSClass, String buttonSmallIcon, String buttonMediumIcon, String buttonLargeIcon, boolean isRenderingOnlyAClass)
tagNameAndClassName
- The rendering for inline editor such as h1.biglabel
- The label for the buttondescription
- The description for the buttonbuttonCSSClass
- The css for the buttonbuttonSmallIcon
- The small icon for the buttonbuttonMediumIcon
- The medium icon for the buttonbuttonLargeIcon
- The large icon for the buttonisRenderingOnlyAClass
- In configuration rendering attribute can be only a class or a tag with an option ".class"public String getTagName()
RichTextConfigurationStyle
getTagName
in interface RichTextConfigurationStyle
public String getClassName()
RichTextConfigurationStyle
getClassName
in interface RichTextConfigurationStyle
public I18nizableText getButtonLabel()
RichTextConfigurationStyle
getButtonLabel
in interface RichTextConfigurationStyle
public I18nizableText getButtonDescription()
RichTextConfigurationStyle
getButtonDescription
in interface RichTextConfigurationStyle
public String getButtonCSSClass()
RichTextConfigurationStyle
getButtonCSSClass
in interface RichTextConfigurationStyle
public String getButtonSmallIcon()
RichTextConfigurationStyle
getButtonSmallIcon
in interface RichTextConfigurationStyle
public String getButtonMediumIcon()
RichTextConfigurationStyle
getButtonMediumIcon
in interface RichTextConfigurationStyle
public String getButtonLargeIcon()
RichTextConfigurationStyle
getButtonLargeIcon
in interface RichTextConfigurationStyle