C# Class 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.
Inheritance: ComboBoxMapper, IComboBoxMapper
Show file Open project: Chillisoft/habanero.faces Class Usage Examples

Public Methods

Method Description
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

Protected Methods

Method Description
InternalUpdateControlValueFromBo ( ) : void

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

Method Details

ApplyChangesToBusinessObject() public method

Updates the properties on the represented business object
public ApplyChangesToBusinessObject ( ) : void
return void

EnumComboBoxMapper() public method

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
return System

InternalUpdateControlValueFromBo() protected method

Updates the value on the control from the corresponding property on the represented IControlMapper.BusinessObject
protected InternalUpdateControlValueFromBo ( ) : void
return void

SetupComboBoxItems() public method

Sets up the items to be listed in the ComboBox
public SetupComboBoxItems ( ) : void
return void