Class Style
- java.lang.Object
 - 
- org.ametys.cms.clientsideelement.styles.Style
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected String_buttonCSSClassSee constructorprotected I18nizableText_buttonDescriptionSee constructorprotected I18nizableText_buttonLabelSee constructorprotected String_buttonLargeIconSee constructorprotected String_buttonMediumIconSee constructorprotected String_buttonSmallIconSee constructorprotected String_inlineEditorRenderSee constructor 
- 
Constructor Summary
Constructors Constructor Description Style(I18nizableText buttonLabel, I18nizableText buttonDescription, String buttonSmallIcon, String buttonMediumIcon, String buttonLargeIcon, String buttonCSSClass, String inlineEditorRender)Create a style for paragraphs 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>getAsParameters()Transform the current para style as a map of parameters.StringgetButtonCSSClass()See constructorI18nizableTextgetButtonDescription()See constructorI18nizableTextgetButtonLabel()See constructorStringgetButtonLargeIcon()See constructorStringgetButtonMediumIcon()See constructorStringgetButtonSmallIcon()See constructorStringgetInlineEditorRender()See constructorvoidtoSAX(ContentHandler contentHandler)SAX the current para style 
 - 
 
- 
- 
Field Detail
- 
_buttonSmallIcon
protected String _buttonSmallIcon
See constructor 
- 
_buttonMediumIcon
protected String _buttonMediumIcon
See constructor 
- 
_buttonLargeIcon
protected String _buttonLargeIcon
See constructor 
- 
_buttonLabel
protected I18nizableText _buttonLabel
See constructor 
- 
_buttonDescription
protected I18nizableText _buttonDescription
See constructor 
- 
_buttonCSSClass
protected String _buttonCSSClass
See constructor 
- 
_inlineEditorRender
protected String _inlineEditorRender
See constructor 
 - 
 
- 
Constructor Detail
- 
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 HTMLEditorStyleExtensionPoint)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 Detail
- 
getAsParameters
public Map<String,Object> 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
public void toSAX(ContentHandler contentHandler) throws SAXException
SAX the current para style- Parameters:
 contentHandler- Where to SAX- Throws:
 SAXException- If an error occured
 
- 
getButtonCSSClass
public String getButtonCSSClass()
See constructor- Returns:
 - the buttonCssClass.
 
 
- 
getButtonDescription
public I18nizableText getButtonDescription()
See constructor- Returns:
 - the buttonDescription
 
 
- 
getButtonSmallIcon
public String getButtonSmallIcon()
See constructor- Returns:
 - the buttonSmallIcon
 
 
- 
getButtonMediumIcon
public String getButtonMediumIcon()
See constructor- Returns:
 - the buttonSmallIcon
 
 
- 
getButtonLargeIcon
public String getButtonLargeIcon()
See constructor- Returns:
 - the buttonSmallIcon
 
 
- 
getButtonLabel
public I18nizableText getButtonLabel()
See constructor- Returns:
 - the buttonLabel
 
 
- 
getInlineEditorRender
public String getInlineEditorRender()
See constructor- Returns:
 - the inlineEditorRender
 
 
 - 
 
 -