org.opencms.workplace.editors
Class CmsEditorCssHandlerDefault

java.lang.Object
  extended by org.opencms.workplace.editors.CmsEditorCssHandlerDefault
All Implemented Interfaces:
I_CmsEditorCssHandler

public class CmsEditorCssHandlerDefault
extends java.lang.Object
implements 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
Version:
$Revision: 1.6 $
Author:
Andreas Zahner

Constructor Summary
CmsEditorCssHandlerDefault()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsEditorCssHandlerDefault

public CmsEditorCssHandlerDefault()
Method Detail

getUriStyleSheet

public java.lang.String getUriStyleSheet(CmsObject cms,
                                         java.lang.String editedResourcePath)
Description copied from interface: I_CmsEditorCssHandler
Returns the absolute VFS path of the CSS style sheet to use.

Specified by:
getUriStyleSheet in interface I_CmsEditorCssHandler
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
See Also:
I_CmsEditorCssHandler.getUriStyleSheet(org.opencms.file.CmsObject, java.lang.String)

matches

public boolean matches(CmsObject cms,
                       java.lang.String editedResourcePath)
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 interface I_CmsEditorCssHandler
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
See Also:
I_CmsEditorCssHandler.matches(org.opencms.file.CmsObject, java.lang.String)