Interface CSSClassResolver

  • All Known Implementing Classes:
    CSSClassResolverImpl

    public interface CSSClassResolver
    CSS class resolver for CPQ. Used for tags, were the CSS class needs to be computed dynamically, based on dynamic configuration attributes.
    • Method Detail

      • getLabelStyleClass

        java.lang.String getLabelStyleClass​(CsticData cstic)
        Computes the label style based on the CsticStatusType of the corresponding cstic.
        So for example one can style cstics with an error differently from ones without an error.
        Parameters:
        cstic - cstic the label belongs to
        Returns:
        style class string, may contain many classes
      • getValueStyleClass

        java.lang.String getValueStyleClass​(CsticData cstic)
        Computes the style for a cstic based on the CsticStatusType of the corresponding cstic. Additionally the cstic type, for example whether the cstic is multi-valued or not may influence the style.
        Parameters:
        cstic - cstic the value blongs to
        Returns:
        style class string, may contain many classes
      • getValuePromoStyleClass

        java.lang.String getValuePromoStyleClass​(CsticData cstic,
                                                 CsticValueData value)
        Computes the style for a cstic value based on the CsticStatusType of the corresponding cstic. Additionally the cstic value will be analysed if it is promo oppotunity or promo applied for the value.
        Parameters:
        cstic - cstic to define a style
        value - cstic value to define a style
        Returns:
        style class string, may contain many classes
      • getMenuNodeStyleClass

        java.lang.String getMenuNodeStyleClass​(UiGroupData group,
                                               java.lang.Integer level)
        Computes the style for an ordinary node in the configuration menu based on several aspects:
        • the level of the node in the menu hierarchy
        • collapsed/expanded state of node
        • whether the node is a leaf node or not
        • GroupStatusType of the ui group represented by this node
        If the node is representing a conflict group, please use getMenuConflictStyleClass(UiGroupData)
        Parameters:
        group - ui group representing the node
        level - nesting level of the node in the menu hierarchy
        Returns:
        style class string, may contain many classes
      • getGroupStyleClass

        java.lang.String getGroupStyleClass​(UiGroupData group,
                                            boolean hideExpandCollapse)
        Computes the group style based and the GroupStatusType. Optionally the expand/collapse state of the group is considered
        So for example one can style an group with an error different from a group which is complete and consistent.
        Parameters:
        group - group to check
        hideExpandCollapse - only if false the expand/collapse state of the group is considered
        Returns:
        style class string, may contain many classes
      • getMenuConflictStyleClass

        java.lang.String getMenuConflictStyleClass​(UiGroupData conflict)
        Computes the style for an conflict node in the configuration menu.
        If the node is representing an ordinary group, please use getMenuNodeStyleClass(UiGroupData, Integer)
        Parameters:
        conflict - conflicting ui group represented by this node
        Returns:
        style class string, may contain many classes
      • getGroupStatusTooltipKey

        java.lang.String getGroupStatusTooltipKey​(UiGroupData group)
        Computes the resource key for the tool-tip to be associated with the group status
        Parameters:
        group - group to check
        Returns:
        style class string, may contain many classes
        See Also:
        getGroupStyleClass(UiGroupData, boolean)
      • getMessageTextAdditionalStyleClass

        java.lang.String getMessageTextAdditionalStyleClass​(ProductConfigMessageData message)
        Returns the additional style class for the message text if necessary.
        Parameters:
        message - message to check
        Returns:
        additional style class for message text
      • getExtendedMessageStyleClass

        java.lang.String getExtendedMessageStyleClass​(ProductConfigMessageData message)
        Returns the style class for the extended message. If message does not support extended message text the style class will be empty.
        Parameters:
        message - message to check
        Returns:
        style class for extended message text
      • getMessageIconStyleClass

        java.lang.String getMessageIconStyleClass​(ProductConfigMessageData message)
        Returns the style class for the message icon. If message does not support message icon the style class will be empty.
        Parameters:
        message - message to check
        Returns:
        style class for message icon