C# Класс 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.
Наследование: ControlMapper
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
InternalUpdateControlValueFromBo ( ) : void

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

Описание методов

ApplyChangesToBusinessObject() публичный Метод

Updates the properties on the represented business object
public ApplyChangesToBusinessObject ( ) : void
Результат void

InternalUpdateControlValueFromBo() защищенный Метод

Updates the interface when the value has been changed in the object being represented
protected InternalUpdateControlValueFromBo ( ) : void
Результат void

TextBoxMapper() публичный Метод

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
Результат System