Habanero.Faces.Base.CollectionComboBoxMapper.CollectionComboBoxMapper C# (CSharp) Method

CollectionComboBoxMapper() public method

Constructor to initialise the mapper
public CollectionComboBoxMapper ( IComboBox cbx, string propName, bool isReadOnly, IControlFactory factory ) : System
cbx IComboBox The ComboBox to map
propName string The property name
isReadOnly bool Whether this control is read only
factory IControlFactory The control factory to be used when creating the controlMapperStrategy
return System
        public CollectionComboBoxMapper(IComboBox cbx, string propName, bool isReadOnly, IControlFactory factory)
            : base(cbx, propName, isReadOnly, factory)
        {
            _comboBox = cbx;
            _mapperStrategy = factory.CreateLookupComboBoxDefaultMapperStrategy();
            _mapperStrategy.AddHandlers(this);
            _comboBoxCollectionSelector = new ComboBoxCollectionSelector(cbx, factory, false);
            _comboBoxCollectionSelector.PreserveSelectedItem = true;
        }