C# Класс Habanero.Faces.Base.EnumComboBoxMapper

Wraps/Decorates a ComboBox in order to display and capture a property of a business object that is an enumeration. A blank item is inserted at the top of the list.
Наследование: ComboBoxMapper, IComboBoxMapper
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ApplyChangesToBusinessObject ( ) : void

Updates the properties on the represented business object

EnumComboBoxMapper ( IComboBox comboBox, string propName, bool isReadOnly, IControlFactory factory ) : System

Instantiates a new mapper

SetupComboBoxItems ( ) : void

Sets up the items to be listed in the ComboBox

Защищенные методы

Метод Описание
InternalUpdateControlValueFromBo ( ) : void

Updates the value on the control from the corresponding property on the represented IControlMapper.BusinessObject

Описание методов

ApplyChangesToBusinessObject() публичный Метод

Updates the properties on the represented business object
public ApplyChangesToBusinessObject ( ) : void
Результат void

EnumComboBoxMapper() публичный Метод

Instantiates a new mapper
public EnumComboBoxMapper ( IComboBox comboBox, string propName, bool isReadOnly, IControlFactory factory ) : System
comboBox 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
Результат System

InternalUpdateControlValueFromBo() защищенный Метод

Updates the value on the control from the corresponding property on the represented IControlMapper.BusinessObject
protected InternalUpdateControlValueFromBo ( ) : void
Результат void

SetupComboBoxItems() публичный Метод

Sets up the items to be listed in the ComboBox
public SetupComboBoxItems ( ) : void
Результат void