public class CSSClassResolverImpl extends Object implements CSSClassResolver
CSSClassResolver| Constructor and Description |
|---|
CSSClassResolverImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
appendStyleClass(String styleClassString,
String styleClass) |
String |
getGroupStatusTooltipKey(UiGroupData group)
Computes the resource key for the tool-tip to be associated with the group status
|
String |
getGroupStyleClass(UiGroupData group)
same as calling
CSSClassResolver.getGroupStyleClass(UiGroupData, boolean) with hideExpandCollapse=false. |
String |
getGroupStyleClass(UiGroupData group,
boolean hideExpandCollapse)
Computes the group style based and the
GroupStatusType. |
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. |
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 CSSClassResolver.getMenuNodeStyleClass(UiGroupData, Integer) |
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 CSSClassResolver.getMenuConflictStyleClass(UiGroupData) |
String |
getValueStyleClass(CsticData cstic)
Computes the style for a cstic based on the
CsticStatusType of the corresponding cstic. |
protected boolean |
isMulitUiElementsType(CsticData cstic) |
protected boolean |
isNullorEmptyList(List<?> list) |
public static final String STYLE_CLASS_SEPERATOR
public static final String STYLE_CLASS_CSTIC_LABEL
public static final String STYLE_CLASS_CSTIC_LABEL_ERROR
public static final String STYLE_CLASS_CSTIC_LABEL_SUCCESS
public static final String STYLE_CLASS_CSTIC_LABEL_WARNING
public static final String STYLE_CLASS_CSTIC_LABEL_LONGTEXT
public static final String STYLE_CLASS_PRODUCT_CONFIG_CSTIC_VALUE
public static final String STYLE_CLASS_PRODUCT_CONFIG_CSTIC_VALUE_ERROR
public static final String STYLE_CLASS_PRODUCT_CONFIG_CSTIC_VALUE_MULTI_LIST
public static final String STYLE_CLASS_GROUP
public static final String STYLE_CLASS_GROUP_FINISHED
public static final String STYLE_CLASS_GROUP_ERROR
public static final String STYLE_CLASS_GROUP_WARNING
public static final String STYLE_CLASS_GROUP_CLOSE
public static final String STYLE_CLASS_GROUP_OPEN
public static final String STYLE_CLASS_MENU_NODE_EXPANDED
public static final String STYLE_CLASS_MENU_NODE_COLLAPSED
public static final String STYLE_CLASS_MENU_NODE_ERROR
public static final String STYLE_CLASS_MENU_NODE_WARNING
public static final String STYLE_CLASS_MENU_NODE_COMPLETED
public static final String STYLE_CLASS_MENU_LEVEL
public static final String STYLE_CLASS_MENU_NODE
public static final String STYLE_CLASS_MENU_LEAF
public static final String STYLE_CLASS_MENU_NON_CONF_LEAF
public static final String STYLE_MENU_CONFLICT_HEADER
public static final String STYLE_MENU_CONFLICT_NODE
public static final String STYLE_CLASS_MENU_NODE_CONFLICT
public static final String STYLE_CLASS_CSTIC_LABEL_CONFLICT
public static final String STYLE_CLASS_GROUP_CONFLICT
public static final String STYLE_CLASS_CONFLICTGROUP
public static final String RESOURCE_KEY_GROUP_ERROR_TOOLTIP
public static final String RESOURCE_KEY_GROUP_FINISHED_TOOLTIP
public String getLabelStyleClass(CsticData cstic)
CSSClassResolverCsticStatusType of the corresponding cstic.getLabelStyleClass in interface CSSClassResolvercstic - cstic the label belongs topublic String getValueStyleClass(CsticData cstic)
CSSClassResolverCsticStatusType of the corresponding cstic. Additionally the
cstic type, for example whether the cstic is multi-valued or not may influence the style.getValueStyleClass in interface CSSClassResolvercstic - cstic the value blongs toprotected boolean isMulitUiElementsType(CsticData cstic)
protected boolean isNullorEmptyList(List<?> list)
public String getGroupStyleClass(UiGroupData group)
CSSClassResolverCSSClassResolver.getGroupStyleClass(UiGroupData, boolean) with hideExpandCollapse=false.getGroupStyleClass in interface CSSClassResolvergroup - group to checkCSSClassResolver.getGroupStyleClass(UiGroupData)public String getGroupStyleClass(UiGroupData group, boolean hideExpandCollapse)
CSSClassResolverGroupStatusType. Optionally the expand/collapse state of the group
is consideredgetGroupStyleClass in interface CSSClassResolvergroup - group to checkhideExpandCollapse - only if false the expand/collapse state of the group is consideredpublic String getMenuNodeStyleClass(UiGroupData group, Integer level)
CSSClassResolverGroupStatusType of the ui group represented by this nodeCSSClassResolver.getMenuConflictStyleClass(UiGroupData)getMenuNodeStyleClass in interface CSSClassResolvergroup - ui group representing the nodelevel - nesting level of the node in the menu hierarchypublic String getMenuConflictStyleClass(UiGroupData conflict)
CSSClassResolverCSSClassResolver.getMenuNodeStyleClass(UiGroupData, Integer)getMenuConflictStyleClass in interface CSSClassResolverconflict - conflicting ui group represented by this nodepublic String getGroupStatusTooltipKey(UiGroupData group)
CSSClassResolvergetGroupStatusTooltipKey in interface CSSClassResolvergroup - group to checkCSSClassResolver.getGroupStyleClass(UiGroupData, boolean)Copyright © 2017 SAP SE. All Rights Reserved.