Package org.opencms.ade.contenteditor
Class A_CmsXmlContentEditorChangeHandler
- java.lang.Object
-
- org.opencms.ade.contenteditor.A_CmsXmlContentEditorChangeHandler
-
- All Implemented Interfaces:
I_CmsXmlContentEditorChangeHandler
- Direct Known Subclasses:
CmsDelayedDefaultChangeHandler
,CmsEditorChangeHandlerFormatterSelection
,CmsEditorChangeHandlerProperty
public abstract class A_CmsXmlContentEditorChangeHandler extends java.lang.Object implements I_CmsXmlContentEditorChangeHandler
Abstract implementation of the content editor change handler.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
m_configuration
The configuration string.protected java.lang.String
m_scope
The content field to watch for changes.
-
Constructor Summary
Constructors Constructor Description A_CmsXmlContentEditorChangeHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getConfiguration()
Returns the handler configuration.java.lang.String
getScope()
Returns the handler scope.java.lang.String
resolveRelativePath(java.lang.String source, java.lang.String target)
Resolves a relative content value path to an absolute one.void
setConfiguration(java.lang.String configuration)
Sets the configuration.void
setScope(java.lang.String scope)
Sets the scope to observe for changes.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opencms.xml.content.I_CmsXmlContentEditorChangeHandler
handleChange
-
-
-
-
Field Detail
-
m_configuration
protected java.lang.String m_configuration
The configuration string.
-
m_scope
protected java.lang.String m_scope
The content field to watch for changes.
-
-
Constructor Detail
-
A_CmsXmlContentEditorChangeHandler
public A_CmsXmlContentEditorChangeHandler()
-
-
Method Detail
-
getConfiguration
public java.lang.String getConfiguration()
Description copied from interface:I_CmsXmlContentEditorChangeHandler
Returns the handler configuration.- Specified by:
getConfiguration
in interfaceI_CmsXmlContentEditorChangeHandler
- Returns:
- the handler configuration
- See Also:
I_CmsXmlContentEditorChangeHandler.getConfiguration()
-
getScope
public java.lang.String getScope()
Description copied from interface:I_CmsXmlContentEditorChangeHandler
Returns the handler scope.- Specified by:
getScope
in interfaceI_CmsXmlContentEditorChangeHandler
- Returns:
- the handler scope
- See Also:
I_CmsXmlContentEditorChangeHandler.getScope()
-
resolveRelativePath
public java.lang.String resolveRelativePath(java.lang.String source, java.lang.String target)
Resolves a relative content value path to an absolute one.- Parameters:
source
- the source pathtarget
- the target path- Returns:
- the resolved path
-
setConfiguration
public void setConfiguration(java.lang.String configuration)
Description copied from interface:I_CmsXmlContentEditorChangeHandler
Sets the configuration.- Specified by:
setConfiguration
in interfaceI_CmsXmlContentEditorChangeHandler
- Parameters:
configuration
- the configuration- See Also:
I_CmsXmlContentEditorChangeHandler.setConfiguration(java.lang.String)
-
setScope
public void setScope(java.lang.String scope)
Description copied from interface:I_CmsXmlContentEditorChangeHandler
Sets the scope to observe for changes.With a scope set to '/link' all changes below the path /link will be observed.
- Specified by:
setScope
in interfaceI_CmsXmlContentEditorChangeHandler
- Parameters:
scope
- the scope- See Also:
I_CmsXmlContentEditorChangeHandler.setScope(java.lang.String)
-
-