Package org.opencms.workplace.editors
Class CmsEditorCssHandlerDefault
java.lang.Object
org.opencms.workplace.editors.CmsEditorCssHandlerDefault
- All Implemented Interfaces:
I_CmsEditorCssHandler
A default editor CSS handler to obtain the CSS style sheet path from the template property value of the template itself.
- Since:
- 6.9.2
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetUriStyleSheet
(CmsObject cms, String editedResourcePath) Returns the absolute VFS path of the CSS style sheet to use.boolean
Checks if the handler can be used to determine the CSS style sheet based on the edited resource.
-
Field Details
-
ATTR_TEMPLATE_EDITOR_CSS
Sitemap attribute that can be used to configure the editor stylesheet.- See Also:
-
ATTRIBUTE_EDITOR_STYLESHEET
Request context attribute used to pass the editor stylesheet (normally defined as a meta tag) to the CSS handler.- See Also:
-
-
Constructor Details
-
CmsEditorCssHandlerDefault
public CmsEditorCssHandlerDefault()
-
-
Method Details
-
getUriStyleSheet
Description copied from interface:I_CmsEditorCssHandler
Returns the absolute VFS path of the CSS style sheet to use.- Specified by:
getUriStyleSheet
in interfaceI_CmsEditorCssHandler
- Parameters:
cms
- the current OpenCms user contexteditedResourcePath
- the absolute VFS path of the currently edited resource- Returns:
- the absolute VFS path of the CSS style sheet to use
- See Also:
-
matches
Description copied from interface:I_CmsEditorCssHandler
Checks if the handler can be used to determine the CSS style sheet based on the edited resource.- Specified by:
matches
in interfaceI_CmsEditorCssHandler
- Parameters:
cms
- the current OpenCms user contexteditedResourcePath
- the absolute VFS path of the currently edited resource- Returns:
- true if the handler matches, otherwise false
- See Also:
-