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

    Modifier and Type
    Method
    Description
    getUriStyleSheet(CmsObject cms, String editedResourcePath)
    Returns the absolute VFS path of the CSS style sheet to use.
    boolean
    matches(CmsObject cms, String editedResourcePath)
    Checks if the handler can be used to determine the CSS style sheet based on the edited resource.
  • Method Details

    • getUriStyleSheet

      String getUriStyleSheet(CmsObject cms, String editedResourcePath)
      Returns the absolute VFS path of the CSS style sheet to use.

      Parameters:
      cms - the current OpenCms user context
      editedResourcePath - 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, 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 context
      editedResourcePath - the absolute VFS path of the currently edited resource
      Returns:
      true if the handler matches, otherwise false