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
ファイルを表示 Open project: Chillisoft/habanero.faces Class Usage Examples

Public Methods

Method 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

Protected Methods

Method Description
InternalUpdateControlValueFromBo ( ) : void

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

Method Details

ApplyChangesToBusinessObject() public method

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

InternalUpdateControlValueFromBo() protected method

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

TextBoxMapper() public method

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