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

Wraps/Decorates a ComboBox in order to display and capture a lookup property of the business object
상속: ComboBoxMapper, IComboBoxMapper
파일 보기 프로젝트 열기: Chillisoft/habanero.faces 1 사용 예제들

공개 메소드들

메소드 설명
ApplyChangesToBusinessObject ( ) : void

Updates the properties on the represented business object

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

Constructor to initialise the mapper

SetupComboBoxItems ( ) : void

Sets up the items to be listed in the ComboBox

보호된 메소드들

메소드 설명
CustomiseLookupList ( string>.Dictionary col ) : void

Do customisation of the Lookup list by overriding this method in an inheritor.

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

비공개 메소드들

메소드 설명
DoUpdateControlValueFromBO ( ) : void

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

GetSelectedOption ( ) : string
PropertyHasAValue ( ) : bool
SetLookupList ( string>.Dictionary lookupList ) : void
SetLookupListValueFromBO ( object boPropertyValue ) : void

Sets the ComboBox's Selected Item based on the Value from the Business Object.

SetupLookupList ( ) : void

Sets up the list of items to display and calls SetLookupList() to populate the ComboBox with this list

SetupLookupList ( string>.Dictionary lookupList ) : void

메소드 상세

ApplyChangesToBusinessObject() 공개 메소드

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

CustomiseLookupList() 보호된 메소드

Do customisation of the Lookup list by overriding this method in an inheritor.
protected CustomiseLookupList ( string>.Dictionary col ) : void
col string>.Dictionary The look up list retrieved from the businessobject that will be customised
리턴 void

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

LookupComboBoxMapper() 공개 메소드

Constructor to initialise the mapper
public LookupComboBoxMapper ( 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

SetupComboBoxItems() 공개 메소드

Sets up the items to be listed in the ComboBox
public SetupComboBoxItems ( ) : void
리턴 void