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 Summary
Modifier and TypeMethodDescriptionReturns the style class for the extended message.Computes the resource key for the tool-tip to be associated with the group statusgetGroupStyleClass(UiGroupData group) same as callinggetGroupStyleClass(UiGroupData, boolean)with hideExpandCollapse=false.getGroupStyleClass(UiGroupData group, boolean hideExpandCollapse) Computes the group style based and theGroupStatusType.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.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)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 notGroupStatusTypeof the ui group represented by this node If the node is representing a conflict group, please usegetMenuConflictStyleClass(UiGroupData)Returns the style class for the message icon.Returns the additional style class for the message text if necessary.getValuePromoStyleClass(CsticData cstic, CsticValueData value) Computes the style for a cstic value based on theCsticStatusTypeof the corresponding cstic.getValueStyleClass(CsticData cstic) Computes the style for a cstic based on theCsticStatusTypeof the corresponding cstic.
-
Method Details
-
getGroupStyleClass
same as callinggetGroupStyleClass(UiGroupData, boolean)with hideExpandCollapse=false.- Parameters:
group- group to check- Returns:
- style class string, may contain many classes
- See Also:
-
getLabelStyleClass
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
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
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
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
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
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
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
Returns the additional style class for the message text if necessary.- Parameters:
message- message to check- Returns:
- additional style class for message text
-
getExtendedMessageStyleClass
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
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
-