Package org.opencms.ade.contenteditor
Class CmsEditorChangeHandlerFormatterSelection
java.lang.Object
org.opencms.ade.contenteditor.A_CmsXmlContentEditorChangeHandler
org.opencms.ade.contenteditor.CmsEditorChangeHandlerFormatterSelection
- All Implemented Interfaces:
I_CmsXmlContentEditorChangeHandler
Editor change handler implementation for the formatter selection in the sitemap config.
If "Remove all formatters" is selected/deselected, the set of formatters that can be added/removed changes.
That means, formerly explicitly added/removed formatters in the sitemap config can not be added/removed anymore.
The respective content nodes must be removed. This is done by that handler.
-
Field Summary
Fields inherited from class org.opencms.ade.contenteditor.A_CmsXmlContentEditorChangeHandler
m_configuration, m_scope
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionhandleChange
(CmsObject cms, CmsXmlContent content, Locale locale, Collection<String> changedPaths) Adjusts the added/removed formatters if "Remove all formatters" is checked/unchecked.Methods inherited from class org.opencms.ade.contenteditor.A_CmsXmlContentEditorChangeHandler
getConfiguration, getScope, resolveRelativePath, setConfiguration, setScope
-
Constructor Details
-
CmsEditorChangeHandlerFormatterSelection
-
-
Method Details
-
handleChange
public CmsXmlContent handleChange(CmsObject cms, CmsXmlContent content, Locale locale, Collection<String> changedPaths) Adjusts the added/removed formatters if "Remove all formatters" is checked/unchecked.- Parameters:
cms
- the cms contextcontent
- the changed contentlocale
- the edited localechangedPaths
- the changed content value paths- Returns:
- the changed content
- See Also:
-