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
Afficher le fichier Open project: Chillisoft/habanero.faces Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
InternalUpdateControlValueFromBo ( ) : void

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

Method Details

ApplyChangesToBusinessObject() public méthode

Updates the properties on the represented business object
public ApplyChangesToBusinessObject ( ) : void
Résultat void

EnumComboBoxMapper() public méthode

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
Résultat System

InternalUpdateControlValueFromBo() protected méthode

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

SetupComboBoxItems() public méthode

Sets up the items to be listed in the ComboBox
public SetupComboBoxItems ( ) : void
Résultat void