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

InternalUpdateControlValueFromBo() protected method

Updates the value on the control from the corresponding property on the represented IControlMapper.BusinessObject
protected InternalUpdateControlValueFromBo ( ) : void
return void
        protected override void InternalUpdateControlValueFromBo()
        {
            if (BusinessObjectCollection == null && this.BusinessObject != null)
            {
                const string message = "The BusinessObjectCollection is null in the CollectionComboBoxMapper when the BusinessObject is set ";
                _logger.Log(" CollectionComboBoxMapper (" + this.BusinessObject + ") For Control (" + this.Control.Name + ") error : " + message, LogCategory.Debug);
                throw new HabaneroDeveloperException(message, message);
            }
            if (PropertyHasAValue())
            {
                SetValueFromLookupList();
            }
            else
            {
                ClearComboBox();
            }
        }