Class DefaultWidgetRenderingUtils
- java.lang.Object
-
- com.hybris.cockpitng.util.impl.DefaultComponentMarkingUtils
-
- com.hybris.cockpitng.widgets.util.impl.DefaultWidgetRenderingUtils
-
- All Implemented Interfaces:
ComponentMarkingUtils,WidgetRenderingUtils
public class DefaultWidgetRenderingUtils extends DefaultComponentMarkingUtils implements WidgetRenderingUtils
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.hybris.cockpitng.util.impl.DefaultComponentMarkingUtils
DefaultComponentMarkingUtils.IdentifiableEventListener, DefaultComponentMarkingUtils.Listener
-
-
Constructor Summary
Constructors Constructor Description DefaultWidgetRenderingUtils()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected QualifierLabelcomputeLabel(java.lang.String qualifier, DataAttribute attribute, PropertyReadResult readResult)Computes label for property described by qualifier, attribute and read result.QualifierLabelgetAttributeLabel(java.lang.Object object, DataType dataType, java.lang.String qualifier)Checks how a attribute's value should be shown to end user.CockpitLocaleServicegetCockpitLocaleService()protected DataAttributegetDataAttribute(java.lang.Object object, DataType dataType, java.lang.String qualifier)protected LabelServicegetLabelService()protected PropertyValueServicegetPropertyValueService()protected TypeFacadegetTypeFacade()protected PropertyReadResultreadProperty(java.lang.Object object, DataType dataType, java.lang.String qualifier, DataAttribute attribute)voidsetCockpitLocaleService(CockpitLocaleService cockpitLocaleService)voidsetLabelService(LabelService labelService)voidsetPropertyValueService(PropertyValueService propertyValueService)voidsetTypeFacade(TypeFacade typeFacade)-
Methods inherited from class com.hybris.cockpitng.util.impl.DefaultComponentMarkingUtils
getEventListener, getListenersToRemove, handleMarkedComponentListener, isListenerToRemove, markComponent, markComponent, mergeComponentSets, moveMarkedComponents, registerMarkedComponentsListener
-
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.util.ComponentMarkingUtils
markComponent, markComponent, moveMarkedComponents, registerMarkedComponentsListener
-
-
-
-
Method Detail
-
getAttributeLabel
public QualifierLabel getAttributeLabel(java.lang.Object object, DataType dataType, java.lang.String qualifier)
Description copied from interface:WidgetRenderingUtilsChecks how a attribute's value should be shown to end user.An attribute may be qualified with a SpEL expression regarding provided object. On basis of provided qualifier and object, a value of attribute is extracted and its String representation is prepared.
- Specified by:
getAttributeLabelin interfaceWidgetRenderingUtils- Parameters:
object- item which attribute id to be rendereddataType- item's type description ornullif an object does not belong do hybris Platform domainqualifier- full attribute qualifier or SpEL expression- Returns:
- evaluation result
-
readProperty
protected PropertyReadResult readProperty(java.lang.Object object, DataType dataType, java.lang.String qualifier, DataAttribute attribute)
-
computeLabel
protected QualifierLabel computeLabel(java.lang.String qualifier, DataAttribute attribute, PropertyReadResult readResult)
Computes label for property described by qualifier, attribute and read result.- Parameters:
qualifier- the property qualifier.attribute- the attribute (can benull).readResult- the property read result (must besuccessful- seePropertyReadResult.isSuccessful()).- Returns:
- computed label.
-
getDataAttribute
protected DataAttribute getDataAttribute(java.lang.Object object, DataType dataType, java.lang.String qualifier)
-
getPropertyValueService
protected PropertyValueService getPropertyValueService()
-
setPropertyValueService
public void setPropertyValueService(PropertyValueService propertyValueService)
-
getLabelService
protected LabelService getLabelService()
-
setLabelService
public void setLabelService(LabelService labelService)
-
getCockpitLocaleService
public CockpitLocaleService getCockpitLocaleService()
-
setCockpitLocaleService
public void setCockpitLocaleService(CockpitLocaleService cockpitLocaleService)
-
getTypeFacade
protected TypeFacade getTypeFacade()
-
setTypeFacade
public void setTypeFacade(TypeFacade typeFacade)
-
-