C# Class Habanero.Faces.Base.ReadOnlyGridMapper

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

Public Methods

Method Description
ApplyChangesToBusinessObject ( ) : void

Updates the properties on the represented business object

ReadOnlyGridMapper ( IReadOnlyGrid ctl, string relationshipName, bool isReadOnly, IControlFactory factory )

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

InternalUpdateControlValueFromBo() protected method

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

ReadOnlyGridMapper() public method

Constructor for the mapper.
public ReadOnlyGridMapper ( IReadOnlyGrid ctl, string relationshipName, bool isReadOnly, IControlFactory factory )
ctl IReadOnlyGrid 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