Class StyleCategory
java.lang.Object
org.ametys.cms.clientsideelement.styles.StyleCategory
A category of style. A style and files to import
-
Field Summary
Modifier and TypeFieldDescriptionThe name of the css file.protected String
The default style referenced by its inlineeditor valueThe name of the css file.The preceding inline editor values to removeThe list of styles configured. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the url of CSS files to import in the BO HMI to give to the style buttons the right appearanceGet the default inline editor valueGet the url of CSS files to import in the inline html editor to give the styles the right appearanceThe inline editor values to remove from preceding categories (with lower priorities)Get the list of styles
-
Field Details
-
_boCSSFiles
The name of the css file. See getBackOfficeCSSFile -
_inlineEditorCSSFiles
The name of the css file. See getInlineEditorCSSFile -
_styleList
The list of styles configured. See getStyles -
_defaultInlineEditor
The default style referenced by its inlineeditor value -
_removeInlineEditor
The preceding inline editor values to remove
-
-
Constructor Details
-
StyleCategory
public StyleCategory(Set<String> boCSSFiles, Set<String> inlineEditorCSSFiles, List<Style> styleList, String defaultInlineEditor, List<String> removeInlineEditor) Build a style- Parameters:
boCSSFiles
- cannot be null.inlineEditorCSSFiles
- cannot be null.styleList
- cannot be null.defaultInlineEditor
- The default inline editor valueremoveInlineEditor
- The list of preceding inline editor values to remove
-
-
Method Details
-
getBackOfficeCSSFiles
Get the url of CSS files to import in the BO HMI to give to the style buttons the right appearance- Returns:
- Contains absolute urls to CSS files
-
getInlineEditorCSSFiles
Get the url of CSS files to import in the inline html editor to give the styles the right appearance- Returns:
- Contains absolute urls to CSS files
-
getStyles
Get the list of styles- Returns:
- A non-null list of para
-
getDefaultInlineEditor
Get the default inline editor value- Returns:
- A inlineeditor value or null
-
getRemovedInlineEditor
The inline editor values to remove from preceding categories (with lower priorities)- Returns:
- the list
-