C# 클래스 Habanero.Faces.Base.CollectionComboBoxMapper

This is used to map a collection of Business objects to a particular property of the Business object. This is typically used when you are wanting to load a collection of business objects via some custom collection loading code that does not allow you to use either the LookupComboBoxMapper or the RelationshipComboBoxMapper.
상속: ControlMapper, IComboBoxMapper
파일 보기 프로젝트 열기: Chillisoft/habanero.faces 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
_comboBox IComboBox

공개 메소드들

메소드 설명
ApplyChangesToBusinessObject ( ) : void

Updates the properties on the represented business object

CollectionComboBoxMapper ( IComboBox cbx, string propName, bool isReadOnly, IControlFactory factory ) : System

Constructor to initialise the mapper

보호된 메소드들

메소드 설명
GetPropertyValue ( ) : object

Returns the property value of the business object being mapped

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

비공개 메소드들

메소드 설명
ClearComboBox ( ) : void
DoUpdateControlValueFromBO ( ) : void

This is a hack that allows Extended Combo box mapper to use Collection ComboBox mapper code without having to inherit from it.

PropertyHasAValue ( ) : bool
SetValueFromLookupList ( ) : void

Populates the ComboBox's list of items using the strings provided by the colleciton

메소드 상세

ApplyChangesToBusinessObject() 공개 메소드

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

CollectionComboBoxMapper() 공개 메소드

Constructor to initialise the mapper
public CollectionComboBoxMapper ( IComboBox cbx, string propName, bool isReadOnly, IControlFactory factory ) : System
cbx IComboBox The ComboBox 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

GetPropertyValue() 보호된 메소드

Returns the property value of the business object being mapped
protected GetPropertyValue ( ) : object
리턴 object

InitialiseWithAttributes() 보호된 메소드

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

InternalUpdateControlValueFromBo() 보호된 메소드

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

프로퍼티 상세

_comboBox 보호되어 있는 프로퍼티

The actual IComboBox control that is being mapped to the Business Object Property identified by PropertyName.
protected IComboBox _comboBox
리턴 IComboBox