Interface WidgetRenderingUtils

    • 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 rendered
        dataType - item's type description or null if an object does not belong do hybris Platform domain
        qualifier - 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 attribute
        attribute - attribute which value is to presented
        Returns:
        end user representation of attribute value