C# Class Habanero.Faces.Base.TextBoxMapper

Wraps a TextBox control in order to display and capture a property of the business object. There are some limitations with using a TextBox for numbers. For greater control of user input with numbers, you should consider using a NumericUpDown control, failing this the appropriate ITextBoxMapperStrategy can be used.
Inheritance: ControlMapper
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

TextBoxMapper ( ITextBox tb, string propName, bool isReadOnly, IControlFactory factory ) : System

Constructor to initialise a new instance of the mapper

Méthodes protégées

Méthode Description
InternalUpdateControlValueFromBo ( ) : void

Updates the interface when the value has been changed in the object being represented

Method Details

ApplyChangesToBusinessObject() public méthode

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

InternalUpdateControlValueFromBo() protected méthode

Updates the interface when the value has been changed in the object being represented
protected InternalUpdateControlValueFromBo ( ) : void
Résultat void

TextBoxMapper() public méthode

Constructor to initialise a new instance of the mapper
public TextBoxMapper ( ITextBox tb, string propName, bool isReadOnly, IControlFactory factory ) : System
tb ITextBox The TextBox 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