Class DropdownComponentTypeAttributePopulator
- java.lang.Object
-
- de.hybris.platform.cmsfacades.types.populator.DropdownComponentTypeAttributePopulator
-
- All Implemented Interfaces:
Populator<AttributeDescriptorModel,ComponentTypeAttributeData>
public class DropdownComponentTypeAttributePopulator extends java.lang.Object implements Populator<AttributeDescriptorModel,ComponentTypeAttributeData>
Populator aimed at setting all necessary information for the receiving end to build a dropdown widget:- identifies the cmsStructureType as
EDITABLE_DROPDOWN - marks the dropdown to be paged by default
- marks the dropdown to be a multi select if the proeprty getter is a
Collection
-
-
Constructor Summary
Constructors Constructor Description DropdownComponentTypeAttributePopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.function.Predicate<AttributeDescriptorModel>getIsCollectionPredicate()voidpopulate(AttributeDescriptorModel source, ComponentTypeAttributeData target)Populate the target instance with values from the source instance.voidsetIsCollectionPredicate(java.util.function.Predicate<AttributeDescriptorModel> isCollectionPredicate)
-
-
-
Method Detail
-
populate
public void populate(AttributeDescriptorModel source, ComponentTypeAttributeData target) throws ConversionException
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<AttributeDescriptorModel,ComponentTypeAttributeData>- Parameters:
source- the source objecttarget- the target to fill- Throws:
ConversionException- if an error occurs
-
getIsCollectionPredicate
protected java.util.function.Predicate<AttributeDescriptorModel> getIsCollectionPredicate()
-
setIsCollectionPredicate
public void setIsCollectionPredicate(java.util.function.Predicate<AttributeDescriptorModel> isCollectionPredicate)
-
-