Interface CSSClassResolver
-
- All Known Implementing Classes:
CSSClassResolverImpl
public interface CSSClassResolverCSS class resolver for CPQ. Used for tags, were the CSS class needs to be computed dynamically, based on dynamic configuration attributes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetExtendedMessageStyleClass(ProductConfigMessageData message)Returns the style class for the extended message.java.lang.StringgetGroupStatusTooltipKey(UiGroupData group)Computes the resource key for the tool-tip to be associated with the group statusjava.lang.StringgetGroupStyleClass(UiGroupData group)same as callinggetGroupStyleClass(UiGroupData, boolean)with hideExpandCollapse=false.java.lang.StringgetGroupStyleClass(UiGroupData group, boolean hideExpandCollapse)Computes the group style based and theGroupStatusType.java.lang.StringgetLabelStyleClass(CsticData cstic)Computes the label style based on theCsticStatusTypeof the corresponding cstic.
So for example one can style cstics with an error differently from ones without an error.java.lang.StringgetMenuConflictStyleClass(UiGroupData conflict)Computes the style for an conflict node in the configuration menu.
If the node is representing an ordinary group, please usegetMenuNodeStyleClass(UiGroupData, Integer)java.lang.StringgetMenuNodeStyleClass(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 notGroupStatusTypeof the ui group represented by this node If the node is representing a conflict group, please usegetMenuConflictStyleClass(UiGroupData)java.lang.StringgetMessageIconStyleClass(ProductConfigMessageData message)Returns the style class for the message icon.java.lang.StringgetMessageTextAdditionalStyleClass(ProductConfigMessageData message)Returns the additional style class for the message text if necessary.java.lang.StringgetValuePromoStyleClass(CsticData cstic, CsticValueData value)Computes the style for a cstic value based on theCsticStatusTypeof the corresponding cstic.java.lang.StringgetValueStyleClass(CsticData cstic)Computes the style for a cstic based on theCsticStatusTypeof the corresponding cstic.
-
-
-
Method Detail
-
getGroupStyleClass
java.lang.String getGroupStyleClass(UiGroupData group)
same as callinggetGroupStyleClass(UiGroupData, boolean)with hideExpandCollapse=false.- Parameters:
group- group to check- Returns:
- style class string, may contain many classes
- See Also:
getGroupStyleClass(UiGroupData)
-
getLabelStyleClass
java.lang.String getLabelStyleClass(CsticData cstic)
Computes the label style based on theCsticStatusTypeof 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 theCsticStatusTypeof 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 theCsticStatusTypeof 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 stylevalue- 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
GroupStatusTypeof the ui group represented by this node
getMenuConflictStyleClass(UiGroupData)- Parameters:
group- ui group representing the nodelevel- 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 theGroupStatusType. 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 checkhideExpandCollapse- only iffalsethe 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 usegetMenuNodeStyleClass(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
-
-