public class CmsShowVersionButtons extends java.lang.Object implements I_CmsDiffProvider
| Constructor and Description |
|---|
CmsShowVersionButtons() |
| Modifier and Type | Method and Description |
|---|---|
com.vaadin.ui.Button |
createButton(CmsObject cms,
CmsHistoryResourceBean version)
Creates a 'show version' button.
|
com.google.common.base.Optional<com.vaadin.ui.Component> |
diff(CmsObject cms,
CmsHistoryResourceBean v1,
CmsHistoryResourceBean v2)
Optionally returns a comparison component to display for the given resource versions.
|
public CmsShowVersionButtons()
public com.vaadin.ui.Button createButton(CmsObject cms, CmsHistoryResourceBean version)
cms - the CMS context to useversion - the versionpublic com.google.common.base.Optional<com.vaadin.ui.Component> diff(CmsObject cms, CmsHistoryResourceBean v1, CmsHistoryResourceBean v2)
I_CmsDiffProviderIf no value is returned, then no widget is displayed.
diff in interface I_CmsDiffProvidercms - the CMS contextv1 - bean representing the first versionv2 - bean representing the second versionI_CmsDiffProvider.diff(org.opencms.file.CmsObject, org.opencms.gwt.shared.CmsHistoryResourceBean, org.opencms.gwt.shared.CmsHistoryResourceBean)