Class CmsValueCompareBean
java.lang.Object
org.opencms.ui.dialogs.history.diff.CmsValueCompareBean
Represents a row of the XML content value comparison table.
-
Constructor Summary
ConstructorDescriptionCmsValueCompareBean
(CmsObject cms, CmsElementComparison elemComp) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic String
formatContentValueForDiffTable
(CmsObject cms, CmsElementComparison comparison, String origValue) Formats an xml content value string for display in the value comparison table.com.vaadin.ui.Button
Gets the change type, as a button.Gets the locale.getV1()
Gets the value for the first version.getV2()
Gets the value for the second version.getXPath()
Gets the element name.
-
Constructor Details
-
CmsValueCompareBean
Creates a new instance.- Parameters:
cms
- the CMS contextelemComp
- the element comparison bean
-
-
Method Details
-
formatContentValueForDiffTable
public static String formatContentValueForDiffTable(CmsObject cms, CmsElementComparison comparison, String origValue) Formats an xml content value string for display in the value comparison table.- Parameters:
cms
- the CMS contextcomparison
- the element comparisonorigValue
- the XML content value as a string- Returns:
- the formatted string
-
getChangeType
Gets the change type, as a button.- Returns:
- the change type
-
getLocale
Gets the locale.- Returns:
- the locale
-
getV1
Gets the value for the first version.- Returns:
- the value for the first version
-
getV2
Gets the value for the second version.- Returns:
- the value for the second version
-
getXPath
Gets the element name.- Returns:
- the element name
-