public class CmsDelayedDefaultChangeHandler extends A_CmsXmlContentEditorChangeHandler
This is useful because the default value used may contain macros, which are expanded every time the change handler is called, rather than only during the initial editor load.
The change handler's configuration consists of two strings separated by a pipe symbol:
path|default
path is the path of the field relative to the changed field which should be filled, while default is the default value to write to the field (possibly containing macros).
m_configuration, m_scope| Constructor and Description |
|---|
CmsDelayedDefaultChangeHandler() |
| Modifier and Type | Method and Description |
|---|---|
CmsXmlContent |
handleChange(CmsObject cms,
CmsXmlContent content,
java.util.Locale locale,
java.util.Collection<java.lang.String> changedPaths)
Handles the content change.
|
void |
setConfiguration(java.lang.String configuration)
Sets the configuration.
|
getConfiguration, getScope, resolveRelativePath, setScopepublic CmsDelayedDefaultChangeHandler()
public CmsXmlContent handleChange(CmsObject cms, CmsXmlContent content, java.util.Locale locale, java.util.Collection<java.lang.String> changedPaths)
I_CmsXmlContentEditorChangeHandlercms - the cms contextcontent - the changed contentlocale - the edited localechangedPaths - the changed content value pathsI_CmsXmlContentEditorChangeHandler.handleChange(org.opencms.file.CmsObject, org.opencms.xml.content.CmsXmlContent, java.util.Locale, java.util.Collection)public void setConfiguration(java.lang.String configuration)
I_CmsXmlContentEditorChangeHandlersetConfiguration in interface I_CmsXmlContentEditorChangeHandlersetConfiguration in class A_CmsXmlContentEditorChangeHandlerconfiguration - the configurationA_CmsXmlContentEditorChangeHandler.setConfiguration(java.lang.String)