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

CheckBoxMapper() public method

Constructor to create a new CheckBox mapper object
public CheckBoxMapper ( ICheckBox cb, string propName, bool isReadOnly, IControlFactory factory ) : System
cb ICheckBox The CheckBox object to be mapped
propName string A name for the property
isReadOnly bool Whether this control is read only
factory IControlFactory the control factory to be used when creating the controlMapperStrategy
return System
        public CheckBoxMapper(ICheckBox cb, string propName, bool isReadOnly, IControlFactory factory)
            : base(cb, propName, isReadOnly, factory)
        {
            _checkBox = cb;
            _strategy = factory.CreateCheckBoxMapperStrategy();
            if (_strategy == null) return;
            _strategy.AddClickEventHandler(this);
        }