Class DropdownComponentTypeAttributePopulator
java.lang.Object
de.hybris.platform.cmsfacades.types.populator.DropdownComponentTypeAttributePopulator
- All Implemented Interfaces:
Populator<AttributeDescriptorModel,ComponentTypeAttributeData>
public class DropdownComponentTypeAttributePopulator
extends 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected Predicate<AttributeDescriptorModel>voidpopulate(AttributeDescriptorModel source, ComponentTypeAttributeData target) Populate the target instance with values from the source instance.voidsetIsCollectionPredicate(Predicate<AttributeDescriptorModel> isCollectionPredicate)
-
Constructor Details
-
DropdownComponentTypeAttributePopulator
public DropdownComponentTypeAttributePopulator()
-
-
Method Details
-
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
-
setIsCollectionPredicate
-