Class DefaultCompareViewSectionHeaderRenderer
- java.lang.Object
-
- com.hybris.cockpitng.widgets.common.AbstractWidgetComponentRenderer<TableRow,CONFIG,PartialRendererData<java.util.Collection>>
-
- com.hybris.cockpitng.widgets.compare.renderer.AbstractCompareViewSectionHeaderRenderer<Section>
-
- com.hybris.cockpitng.widgets.compare.renderer.DefaultCompareViewSectionHeaderRenderer
-
- All Implemented Interfaces:
NotifyingWidgetComponentRenderer<TableRow,Section,PartialRendererData<java.util.Collection>>,WidgetComponentRenderer<TableRow,Section,PartialRendererData<java.util.Collection>>
public class DefaultCompareViewSectionHeaderRenderer extends AbstractCompareViewSectionHeaderRenderer<Section>
-
-
Constructor Summary
Constructors Constructor Description DefaultCompareViewSectionHeaderRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetSectionName(Section configuration)protected java.lang.StringgetTooltipText(Section configuration)protected booleanisNotEqual(ComparisonResult result, Section configuration)Checks if there is any difference in a group for reference objectprotected booleanisNotEqual(ComparisonResult result, Section section, java.lang.Object itemId)Checks if there is any difference in a group for reference objectprotected booleanisNotEqual(ComparisonResult result, java.lang.String groupName)Checks if there is any difference in a group for reference object-
Methods inherited from class com.hybris.cockpitng.widgets.compare.renderer.AbstractCompareViewSectionHeaderRenderer
createSectionHeader, createSectionHeaderTitle, createSectionHeaderTitleExpandTrigger, createSectionHeaderTitleLabel, createSectionHeaderTitleSuffixLabel, createTooltipText, getItemComparisonFacade, getObjectFacade, getTranslatedSectionName, getWidgetRenderingUtils, isItemAttributeDifferentThanCorrespondingReferenceItemAttribute, render, renderSectionHeader, renderSectionHeaderTitle, requiresSectionHeaderRendering, requiresSectionHeaderTitleRendering, sectionHeaderRendered, sectionHeaderTitleRendered, setItemComparisonFacade, setObjectFacade, setWidgetRenderingUtils
-
Methods inherited from class com.hybris.cockpitng.widgets.common.AbstractWidgetComponentRenderer
addRendererListener, fireComponentRendered, fireComponentRendered, fireComponentRendered, removeRendererListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.hybris.cockpitng.widgets.common.WidgetComponentRenderer
render
-
-
-
-
Method Detail
-
getSectionName
protected java.lang.String getSectionName(Section configuration)
- Specified by:
getSectionNamein classAbstractCompareViewSectionHeaderRenderer<Section>
-
getTooltipText
protected java.lang.String getTooltipText(Section configuration)
- Specified by:
getTooltipTextin classAbstractCompareViewSectionHeaderRenderer<Section>
-
isNotEqual
protected boolean isNotEqual(ComparisonResult result, Section configuration)
Description copied from class:AbstractCompareViewSectionHeaderRendererChecks if there is any difference in a group for reference object- Specified by:
isNotEqualin classAbstractCompareViewSectionHeaderRenderer<Section>- Parameters:
result- ComparisonResult loaded from engineDefaultItemComparisonFacade.getCompareViewResult(Object, Collection, Collection)configuration- group configuration- Returns:
- true if reference object has any difference in context of group, false otherwise
-
isNotEqual
protected boolean isNotEqual(ComparisonResult result, java.lang.String groupName)
Checks if there is any difference in a group for reference object- Parameters:
result- ComparisonResult loaded from engineDefaultItemComparisonFacade.getCompareViewResult(Object, Collection, Collection)groupName- Group name- Returns:
- true if reference object has any difference in context of group, false otherwise
-
isNotEqual
protected boolean isNotEqual(ComparisonResult result, Section section, java.lang.Object itemId)
Checks if there is any difference in a group for reference object- Specified by:
isNotEqualin classAbstractCompareViewSectionHeaderRenderer<Section>- Parameters:
result- ComparisonResult loaded from engineDefaultItemComparisonFacade.getCompareViewResult(Object, Collection, Collection)section- tested section for contains differences to reference objectitemId- itemId which is compared to reference object- Returns:
- true if any of attributes from section of itemId has any difference in context of group(section) and reference object, false otherwise
-
-