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

NumericUpDownMapper() protected method

Constructor to instantiate a new instance of the class
protected NumericUpDownMapper ( INumericUpDown ctl, string propName, bool isReadOnly, IControlFactory factory ) : System
ctl INumericUpDown The control object to map
propName string The property name
isReadOnly bool Whether the control is read only. /// If so, it then becomes disabled. If not, /// handlers are assigned to manage key presses, depending on the strategy assigned to this mapper.
factory IControlFactory The control factory to be used when creating the controlMapperStrategy
return System
        protected NumericUpDownMapper(INumericUpDown ctl, string propName, bool isReadOnly, IControlFactory factory)
            : base(ctl, propName, isReadOnly, factory)
        {
            _numericUpDown = (INumericUpDown)ctl;
            _mapperStrategy = factory.CreateNumericUpDownMapperStrategy();
            _mapperStrategy.ValueChanged(this);
        }