Class CSSClassResolverImpl
java.lang.Object
de.hybris.platform.sap.productconfig.frontend.util.impl.CSSClassResolverImpl
- All Implemented Interfaces:
CSSClassResolver
Default implementation of
CSSClassResolver-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringappendStyleClass(String styleClassString, String styleClass) Returns 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 callingCSSClassResolver.getGroupStyleClass(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 useCSSClassResolver.getMenuNodeStyleClass(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 useCSSClassResolver.getMenuConflictStyleClass(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.protected booleanisMultiUiElementsType(CsticData cstic) protected booleanisNullorEmptyList(List<?> list)
-
Constructor Details
-
CSSClassResolverImpl
public CSSClassResolverImpl()
-
-
Method Details
-
getLabelStyleClass
Description copied from interface:CSSClassResolverComputes 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.- Specified by:
getLabelStyleClassin interfaceCSSClassResolver- Parameters:
cstic- cstic the label belongs to- Returns:
- style class string, may contain many classes
-
getValueStyleClass
Description copied from interface:CSSClassResolverComputes 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.- Specified by:
getValueStyleClassin interfaceCSSClassResolver- Parameters:
cstic- cstic the value blongs to- Returns:
- style class string, may contain many classes
-
getValuePromoStyleClass
Description copied from interface:CSSClassResolverComputes 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.- Specified by:
getValuePromoStyleClassin interfaceCSSClassResolver- Parameters:
cstic- cstic to define a stylevalue- cstic value to define a style- Returns:
- style class string, may contain many classes
-
isMultiUiElementsType
-
appendStyleClass
-
isNullorEmptyList
-
getGroupStyleClass
Description copied from interface:CSSClassResolversame as callingCSSClassResolver.getGroupStyleClass(UiGroupData, boolean)with hideExpandCollapse=false.- Specified by:
getGroupStyleClassin interfaceCSSClassResolver- Parameters:
group- group to check- Returns:
- style class string, may contain many classes
- See Also:
-
getGroupStyleClass
Description copied from interface:CSSClassResolverComputes 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.- Specified by:
getGroupStyleClassin interfaceCSSClassResolver- Parameters:
group- group to checkhideExpandCollapse- only iffalsethe expand/collapse state of the group is considered- Returns:
- style class string, may contain many classes
-
getMenuNodeStyleClass
Description copied from interface:CSSClassResolverComputes 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
CSSClassResolver.getMenuConflictStyleClass(UiGroupData)- Specified by:
getMenuNodeStyleClassin interfaceCSSClassResolver- Parameters:
group- ui group representing the nodelevel- nesting level of the node in the menu hierarchy- Returns:
- style class string, may contain many classes
-
getMenuConflictStyleClass
Description copied from interface:CSSClassResolverComputes the style for an conflict node in the configuration menu.
If the node is representing an ordinary group, please useCSSClassResolver.getMenuNodeStyleClass(UiGroupData, Integer)- Specified by:
getMenuConflictStyleClassin interfaceCSSClassResolver- Parameters:
conflict- conflicting ui group represented by this node- Returns:
- style class string, may contain many classes
-
getGroupStatusTooltipKey
Description copied from interface:CSSClassResolverComputes the resource key for the tool-tip to be associated with the group status- Specified by:
getGroupStatusTooltipKeyin interfaceCSSClassResolver- Parameters:
group- group to check- Returns:
- style class string, may contain many classes
- See Also:
-
getMessageTextAdditionalStyleClass
Description copied from interface:CSSClassResolverReturns the additional style class for the message text if necessary.- Specified by:
getMessageTextAdditionalStyleClassin interfaceCSSClassResolver- Parameters:
message- message to check- Returns:
- additional style class for message text
-
getExtendedMessageStyleClass
Description copied from interface:CSSClassResolverReturns the style class for the extended message. If message does not support extended message text the style class will be empty.- Specified by:
getExtendedMessageStyleClassin interfaceCSSClassResolver- Parameters:
message- message to check- Returns:
- style class for extended message text
-
getMessageIconStyleClass
Description copied from interface:CSSClassResolverReturns the style class for the message icon. If message does not support message icon the style class will be empty.- Specified by:
getMessageIconStyleClassin interfaceCSSClassResolver- Parameters:
message- message to check- Returns:
- style class for message icon
-