Class Style
java.lang.Object
org.ametys.cms.clientsideelement.styles.Style
This class handle style for paragraphs
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
See constructorprotected I18nizableText
See constructorprotected I18nizableText
See constructorprotected String
See constructorprotected String
See constructorprotected String
See constructorprotected String
See constructor -
Constructor Summary
ConstructorDescriptionStyle
(I18nizableText buttonLabel, I18nizableText buttonDescription, String buttonSmallIcon, String buttonMediumIcon, String buttonLargeIcon, String buttonCSSClass, String inlineEditorRender) Create a style for paragraphs -
Method Summary
Modifier and TypeMethodDescriptionTransform the current para style as a map of parameters.See constructorSee constructorSee constructorSee constructorSee constructorSee constructorSee constructorvoid
toSAX
(ContentHandler contentHandler) SAX the current para style
-
Field Details
-
_buttonSmallIcon
See constructor -
_buttonMediumIcon
See constructor -
_buttonLargeIcon
See constructor -
_buttonLabel
See constructor -
_buttonDescription
See constructor -
_buttonCSSClass
See constructor -
_inlineEditorRender
See constructor
-
-
Constructor Details
-
Style
public Style(I18nizableText buttonLabel, I18nizableText buttonDescription, String buttonSmallIcon, String buttonMediumIcon, String buttonLargeIcon, String buttonCSSClass, String inlineEditorRender) Create a style for paragraphs- Parameters:
buttonLabel
- Label of the backoffice button to apply this stylebuttonDescription
- Description of the backoffice button to apply this stylebuttonSmallIcon
- Image in 16x16 pixels (can be null) of the backoffice button to apply this stylebuttonMediumIcon
- Image in 32x32 pixels (can be null) of the backoffice button to apply this stylebuttonLargeIcon
- Image in 48x48 pixels (can be null) of the backoffice button to apply this stylebuttonCSSClass
- CSS class of the backoffice button to apply this style (used to give a preview appearance to the button) The CSS class has to be defined in the imported files (See HTMLEditorStyle)inlineEditorRender
- Information necessary in the inline editor to "apply" the style. Can be a "tagname.classname" or just a "classname" depending on the element to style
-
-
Method Details
-
getAsParameters
Transform the current para style as a map of parameters. Parameters are :- icon-small (optional)
- icon-medium (optional)
- icon-large (optional)
- label
- description
- cssclass (optional)
- inline-editor-render
- Returns:
- The non null map with parameters.
-
toSAX
SAX the current para style- Parameters:
contentHandler
- Where to SAX- Throws:
SAXException
- If an error occured
-
getButtonCSSClass
See constructor- Returns:
- the buttonCssClass.
-
getButtonDescription
See constructor- Returns:
- the buttonDescription
-
getButtonSmallIcon
See constructor- Returns:
- the buttonSmallIcon
-
getButtonMediumIcon
See constructor- Returns:
- the buttonSmallIcon
-
getButtonLargeIcon
See constructor- Returns:
- the buttonSmallIcon
-
getButtonLabel
See constructor- Returns:
- the buttonLabel
-
getInlineEditorRender
See constructor- Returns:
- the inlineEditorRender
-