Package org.opencms.workplace.editors
Interface I_CmsEditorCssHandler
-
- All Known Implementing Classes:
CmsEditorCssHandlerDefault
public interface I_CmsEditorCssHandler
Provides methods to determine the CSS style sheet URI for the editors based on the edited resource path.The method
matches(CmsObject, String)
can be used to check if the handler matches the currently edited resource.- Since:
- 6.9.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getUriStyleSheet(CmsObject cms, java.lang.String editedResourcePath)
Returns the absolute VFS path of the CSS style sheet to use.boolean
matches(CmsObject cms, java.lang.String editedResourcePath)
Checks if the handler can be used to determine the CSS style sheet based on the edited resource.
-
-
-
Method Detail
-
getUriStyleSheet
java.lang.String getUriStyleSheet(CmsObject cms, java.lang.String editedResourcePath)
Returns the absolute VFS path of the CSS style sheet to use.- 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
-
matches
boolean matches(CmsObject cms, java.lang.String editedResourcePath)
Checks if the handler can be used to determine the CSS style sheet based on the edited resource.- Parameters:
cms
- the current OpenCms user contexteditedResourcePath
- the absolute VFS path of the currently edited resource- Returns:
- true if the handler matches, otherwise false
-
-