Class CmsValueCompareBean
- java.lang.Object
-
- org.opencms.ui.dialogs.history.diff.CmsValueCompareBean
-
public class CmsValueCompareBean extends java.lang.Object
Represents a row of the XML content value comparison table.
-
-
Constructor Summary
Constructors Constructor Description CmsValueCompareBean(CmsObject cms, CmsElementComparison elemComp)
Creates a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.String
formatContentValueForDiffTable(CmsObject cms, CmsElementComparison comparison, java.lang.String origValue)
Formats an xml content value string for display in the value comparison table.com.vaadin.ui.Button
getChangeType()
Gets the change type, as a button.java.lang.String
getLocale()
Gets the locale.java.lang.String
getV1()
Gets the value for the first version.java.lang.String
getV2()
Gets the value for the second version.java.lang.String
getXPath()
Gets the element name.
-
-
-
Constructor Detail
-
CmsValueCompareBean
public CmsValueCompareBean(CmsObject cms, CmsElementComparison elemComp)
Creates a new instance.- Parameters:
cms
- the CMS contextelemComp
- the element comparison bean
-
-
Method Detail
-
formatContentValueForDiffTable
public static java.lang.String formatContentValueForDiffTable(CmsObject cms, CmsElementComparison comparison, java.lang.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
public com.vaadin.ui.Button getChangeType()
Gets the change type, as a button.- Returns:
- the change type
-
getLocale
public java.lang.String getLocale()
Gets the locale.- Returns:
- the locale
-
getV1
public java.lang.String getV1()
Gets the value for the first version.- Returns:
- the value for the first version
-
getV2
public java.lang.String getV2()
Gets the value for the second version.- Returns:
- the value for the second version
-
getXPath
public java.lang.String getXPath()
Gets the element name.- Returns:
- the element name
-
-