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 Details

    • getGroupStyleClass

      String getGroupStyleClass(UiGroupData group)
      same as calling getGroupStyleClass(UiGroupData, boolean) with hideExpandCollapse=false.
      Parameters:
      group - group to check
      Returns:
      style class string, may contain many classes
      See Also:
    • getLabelStyleClass

      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

      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

      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

      String getMenuNodeStyleClass(UiGroupData group, 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

      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

      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

      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:
    • getMessageTextAdditionalStyleClass

      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

      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

      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