C# Class Habanero.Faces.Base.CheckBoxMapper

Wraps a CheckBox in order to display and capture a boolean property of the business object
Inheritance: ControlMapper
Afficher le fichier Open project: Chillisoft/habanero.faces Class Usage Examples

Méthodes publiques

Méthode Description
ApplyChangesToBusinessObject ( ) : void

The event handler that is called to update the property on the Business Object when the user has checked or unchecked the CheckBox.

CheckBoxMapper ( ICheckBox cb, string propName, bool isReadOnly, IControlFactory factory ) : System

Constructor to create a new CheckBox mapper object

GetStrategy ( ) : ICheckBoxMapperStrategy

Gets the custom strategy that is applied to this mapper by the control factory, which determines how the Click event is handled. See ICheckBoxMapperStrategy.

Méthodes protégées

Méthode Description
InternalUpdateControlValueFromBo ( ) : void

Updates the appearance of the control when the value of the property has changed internally

Method Details

ApplyChangesToBusinessObject() public méthode

The event handler that is called to update the property on the Business Object when the user has checked or unchecked the CheckBox.
public ApplyChangesToBusinessObject ( ) : void
Résultat void

CheckBoxMapper() public méthode

Constructor to create a new CheckBox mapper object
public CheckBoxMapper ( ICheckBox cb, string propName, bool isReadOnly, IControlFactory factory ) : System
cb ICheckBox The CheckBox object to be mapped
propName string A name for the property
isReadOnly bool Whether this control is read only
factory IControlFactory the control factory to be used when creating the controlMapperStrategy
Résultat System

GetStrategy() public méthode

Gets the custom strategy that is applied to this mapper by the control factory, which determines how the Click event is handled. See ICheckBoxMapperStrategy.
public GetStrategy ( ) : ICheckBoxMapperStrategy
Résultat ICheckBoxMapperStrategy

InternalUpdateControlValueFromBo() protected méthode

Updates the appearance of the control when the value of the property has changed internally
protected InternalUpdateControlValueFromBo ( ) : void
Résultat void