C# Class Habanero.Faces.Base.EditableGridControlMapper

Maps a multiple relationship collection onto an IEditableGridControl This is used for editing a Many relationship e.g. If an Invoice has many items then this control mapper can be used to provide an editable grid of Invoice Items.
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

EditableGridControlMapper ( IEditableGridControl ctl, string relationshipName, bool isReadOnly, IControlFactory factory ) : Habanero.Base

Constructor for the mapper.

Protected Methods

Method Description
InternalUpdateControlValueFromBo ( ) : void

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

Method Details

ApplyChangesToBusinessObject() public method

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

EditableGridControlMapper() public method

Constructor for the mapper.
public EditableGridControlMapper ( IEditableGridControl ctl, string relationshipName, bool isReadOnly, IControlFactory factory ) : Habanero.Base
ctl IEditableGridControl The IEditableGridControl
relationshipName string This is the relationship name to use - this relationship must be a multiple relationship and exist on the BusinessObject
isReadOnly bool Whether the editable grid should be read only or not. Ignored
factory IControlFactory The control factory to use
return Habanero.Base

InternalUpdateControlValueFromBo() protected method

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