Class UiTypeFinderImpl
java.lang.Object
de.hybris.platform.sap.productconfig.facades.impl.UiTypeFinderImpl
- All Implemented Interfaces:
UiTypeFinder
Default implementation of the
UiTypeFinder.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddUiTypeToListLowMem(List<UiType> list, UiType uiType) checkForMultiSelectionTypes(CsticModel model, boolean isDebugEnabled, boolean hasValueImages, boolean isReadOnly) checkForSingelValueTypes(CsticModel model, boolean isDebugEnabled) checkForSingleSelectionTypes(CsticModel model, boolean isDebugEnabled, boolean hasValueImages, boolean isReadOnly) protected UiTypechooseUiType(List<UiType> posibleTypes, CsticModel model) protected UiValidationTypechooseUiValidationType(List<UiValidationType> posibleTypes, CsticModel model) collectPossibleTypes(CsticModel model, CsticData data, boolean isDebugEnabled) protected List<UiValidationType>collectPossibleValidationTypes(CsticModel model, boolean isDebugEnabled) protected booleaneditableWithAdditionalValue(CsticModel model, boolean isDebugEnabled) protected booleaneditableWithoutAdditionalValue(CsticModel model, boolean isDebugEnabled) findUiTypeForCstic(CsticModel model) findUiTypeForCstic(CsticModel model, CsticData data) protected booleanhasCsticValueImages(CsticData data) Checks cstic DTO whether it has at least one image on value level.protected booleanhasValueImage(CsticValueData valueData) Checks value DTO whether it has at least one image.protected booleanprotected booleanisCheckbox(CsticModel model, boolean isDebugEnabled, boolean hasValueImages) protected booleanisCheckboxList(CsticModel model, boolean isDebugEnabled, boolean hasValueImages) protected booleanisConstrainedOrHasAssignableValues(CsticModel model, boolean isDebugEnabled) protected booleanisDDLB(CsticModel model, boolean isDebugEnabled, boolean hasValueImages) protected booleanisDDLBAdditionalValue(CsticModel model, boolean isDebugEnabled) protected booleanisInput(CsticModel model, boolean isDebugEnabled) protected booleanisInputTypeSupported(CsticModel model, boolean isDebugEnabled) protected booleanisIntervallBasedInput(CsticModel model) protected booleanisMultiSelection(CsticModel model, boolean isDebugEnabled) protected booleanisMultiSelectionImage(CsticModel model, boolean isDebugEnabled, boolean hasValueImages) protected booleanisNumericInput(CsticModel model, boolean isDebugEnabled) protected booleanisRadioButton(CsticModel model, boolean isDebugEnabled, boolean hasValueImages) protected booleanisRadioButtonAdditionalValue(CsticModel model, boolean isDebugEnabled) protected booleanisReadonly(CsticModel model, boolean isDebugEnabled) protected booleanisSelection(CsticModel model, boolean isDebugEnabled) protected booleanisSimpleInput(CsticModel model) protected booleanisSimpleNumber(CsticModel model, boolean isDebugEnabled) protected booleanisSimpleString(CsticModel model, boolean isDebugEnabled) protected booleanisSingleSelection(CsticModel model, boolean isDebugEnabled) protected booleanisSingleSelectionImage(CsticModel model, boolean isDebugEnabled, boolean hasValueImages) protected booleanisStringInput(CsticModel model, boolean isDebugEnabled) protected booleanisValueTypeSupported(CsticModel model, boolean isDebugEnabled) mergeUiTypeListLowMem(List<UiType> list1, List<UiType> list2) voidsetDropDownListThreshold(int dropDownListThreshold)
-
Field Details
-
DEFAULT_DROP_DOWN_LIST_THRESHOLD
public static final int DEFAULT_DROP_DOWN_LIST_THRESHOLD- See Also:
-
-
Constructor Details
-
UiTypeFinderImpl
public UiTypeFinderImpl()
-
-
Method Details
-
findUiTypeForCstic
- Specified by:
findUiTypeForCsticin interfaceUiTypeFinder- Returns:
- UIType that decides how the characteristic is rendered on the UI
-
findUiTypeForCstic
- Specified by:
findUiTypeForCsticin interfaceUiTypeFinder- Returns:
- UIType that decides how the characteristic is rendered on the UI
-
addUiTypeToListLowMem
-
mergeUiTypeListLowMem
-
collectPossibleTypes
protected List<UiType> collectPossibleTypes(CsticModel model, CsticData data, boolean isDebugEnabled) -
checkForSingleSelectionTypes
protected List<UiType> checkForSingleSelectionTypes(CsticModel model, boolean isDebugEnabled, boolean hasValueImages, boolean isReadOnly) -
checkForMultiSelectionTypes
protected List<UiType> checkForMultiSelectionTypes(CsticModel model, boolean isDebugEnabled, boolean hasValueImages, boolean isReadOnly) -
checkForSingelValueTypes
-
chooseUiType
-
collectPossibleValidationTypes
protected List<UiValidationType> collectPossibleValidationTypes(CsticModel model, boolean isDebugEnabled) -
chooseUiValidationType
protected UiValidationType chooseUiValidationType(List<UiValidationType> posibleTypes, CsticModel model) -
isReadonly
-
isDDLB
-
isDDLBAdditionalValue
-
isSingleSelectionImage
protected boolean isSingleSelectionImage(CsticModel model, boolean isDebugEnabled, boolean hasValueImages) -
isRadioButton
-
isRadioButtonAdditionalValue
-
isCheckbox
-
isCheckboxList
-
isMultiSelectionImage
protected boolean isMultiSelectionImage(CsticModel model, boolean isDebugEnabled, boolean hasValueImages) -
isStringInput
-
isNumericInput
-
isSelection
-
isConstrainedOrHasAssignableValues
-
isMultiSelection
-
isSingleSelection
-
isInput
-
isInputTypeSupported
-
isIntervallBasedInput
-
isSimpleInput
-
isAdditionalValueWithoutDomian
-
editableWithoutAdditionalValue
-
editableWithAdditionalValue
-
isValueTypeSupported
-
isSimpleString
-
isSimpleNumber
-
setDropDownListThreshold
public void setDropDownListThreshold(int dropDownListThreshold) - Parameters:
dropDownListThreshold- the dropDownListThreshold to set
-
findUiValidationTypeForCstic
- Specified by:
findUiValidationTypeForCsticin interfaceUiTypeFinder- Returns:
- UIValidatioType that decides how the user input for this characteristic is validated
-
hasCsticValueImages
Checks cstic DTO whether it has at least one image on value level.- Parameters:
data-- Returns:
-
hasValueImage
Checks value DTO whether it has at least one image.- Parameters:
valueData-- Returns:
-