C# Class Habanero.Faces.Base.DateTimePickerMapper

Wraps a DateTimePicker in order to display and capture a DateTime property of the business object
Inheritance: ControlMapper
Show file Open project: Chillisoft/habanero.faces Class Usage Examples

Public Methods

Method Description
ApplyChangesToBusinessObject ( ) : void

Updates the properties on the represented business object

DateTimePickerMapper ( IDateTimePicker picker, string propName, bool isReadOnly, IControlFactory factory ) : System

Constructor to initialise a new instance of the class

Protected Methods

Method Description
InitialiseWithAttributes ( ) : void

Initialises the control using the attributes already provided, using ControlMapper.SetPropertyAttributes.

InternalUpdateControlValueFromBo ( ) : void

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

Private Methods

Method Description
GetValueOfDateTimePicker ( ) : object

Returns the value currently held by the picker

Method Details

ApplyChangesToBusinessObject() public method

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

DateTimePickerMapper() public method

Constructor to initialise a new instance of the class
public DateTimePickerMapper ( IDateTimePicker picker, string propName, bool isReadOnly, IControlFactory factory ) : System
picker IDateTimePicker The DateTimePicker control to which the property is mapped
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

InitialiseWithAttributes() protected method

Initialises the control using the attributes already provided, using ControlMapper.SetPropertyAttributes.
protected InitialiseWithAttributes ( ) : void
return void

InternalUpdateControlValueFromBo() protected method

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