Class CSSClassResolverImpl

    • Constructor Detail

      • CSSClassResolverImpl

        public CSSClassResolverImpl()
    • Method Detail

      • getLabelStyleClass

        public java.lang.String getLabelStyleClass​(CsticData cstic)
        Description copied from interface: CSSClassResolver
        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.
        Specified by:
        getLabelStyleClass in interface CSSClassResolver
        Parameters:
        cstic - cstic the label belongs to
        Returns:
        style class string, may contain many classes
      • getValueStyleClass

        public java.lang.String getValueStyleClass​(CsticData cstic)
        Description copied from interface: CSSClassResolver
        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.
        Specified by:
        getValueStyleClass in interface CSSClassResolver
        Parameters:
        cstic - cstic the value blongs to
        Returns:
        style class string, may contain many classes
      • getValuePromoStyleClass

        public java.lang.String getValuePromoStyleClass​(CsticData cstic,
                                                        CsticValueData value)
        Description copied from interface: CSSClassResolver
        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.
        Specified by:
        getValuePromoStyleClass in interface CSSClassResolver
        Parameters:
        cstic - cstic to define a style
        value - cstic value to define a style
        Returns:
        style class string, may contain many classes
      • isMultiUiElementsType

        protected boolean isMultiUiElementsType​(CsticData cstic)
      • appendStyleClass

        protected java.lang.String appendStyleClass​(java.lang.String styleClassString,
                                                    java.lang.String styleClass)
      • isNullorEmptyList

        protected boolean isNullorEmptyList​(java.util.List<?> list)
      • getGroupStyleClass

        public java.lang.String getGroupStyleClass​(UiGroupData group,
                                                   boolean hideExpandCollapse)
        Description copied from interface: CSSClassResolver
        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.
        Specified by:
        getGroupStyleClass in interface CSSClassResolver
        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
      • getMenuNodeStyleClass

        public java.lang.String getMenuNodeStyleClass​(UiGroupData group,
                                                      java.lang.Integer level)
        Description copied from interface: CSSClassResolver
        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 CSSClassResolver.getMenuConflictStyleClass(UiGroupData)
        Specified by:
        getMenuNodeStyleClass in interface CSSClassResolver
        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
      • getExtendedMessageStyleClass

        public java.lang.String getExtendedMessageStyleClass​(ProductConfigMessageData message)
        Description copied from interface: CSSClassResolver
        Returns the style class for the extended message. If message does not support extended message text the style class will be empty.
        Specified by:
        getExtendedMessageStyleClass in interface CSSClassResolver
        Parameters:
        message - message to check
        Returns:
        style class for extended message text
      • getMessageIconStyleClass

        public java.lang.String getMessageIconStyleClass​(ProductConfigMessageData message)
        Description copied from interface: CSSClassResolver
        Returns the style class for the message icon. If message does not support message icon the style class will be empty.
        Specified by:
        getMessageIconStyleClass in interface CSSClassResolver
        Parameters:
        message - message to check
        Returns:
        style class for message icon