Interface WidgetRenderingUtils
-
- All Superinterfaces:
ComponentMarkingUtils
- All Known Implementing Classes:
DefaultWidgetRenderingUtils
public interface WidgetRenderingUtils extends ComponentMarkingUtils
Utilities used to render information about/in widgets
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default QualifierLabelgetAttributeLabel(java.lang.Object value, DataAttribute attribute)Checks how particular value of an attribute should be shown to end user.QualifierLabelgetAttributeLabel(java.lang.Object object, DataType dataType, java.lang.String qualifier)Checks how a attribute's value should be shown to end user.-
Methods inherited from interface com.hybris.cockpitng.util.ComponentMarkingUtils
markComponent, markComponent, moveMarkedComponents, registerMarkedComponentsListener
-
-
-
-
Method Detail
-
getAttributeLabel
QualifierLabel getAttributeLabel(java.lang.Object object, DataType dataType, java.lang.String qualifier)
Checks 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.
- 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
-
getAttributeLabel
default QualifierLabel getAttributeLabel(java.lang.Object value, DataAttribute attribute)
Checks how particular value of an attribute should be shown to end user.- Parameters:
value- value of an attributeattribute- attribute which value is to presented- Returns:
- end user representation of attribute value
-
-