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

Wraps/Decorates a IComboBox in order to display and capture a lookup property of the business object
상속: ControlMapper
파일 보기 프로젝트 열기: Chillisoft/habanero.faces

보호된 프로퍼티들

프로퍼티 타입 설명
_collection string>.Dictionary
_comboBox IComboBox
_rightClickEnabled bool

공개 메소드들

메소드 설명
SetupComboBoxItems ( ) : void

Sets up the items to be listed in the ComboBox

보호된 메소드들

메소드 설명
ComboBoxMapper ( IComboBox comboBox, string propName, bool isReadOnly, IControlFactory factory ) : System.Collections.Generic

Constructor to initialise a new instance of the class

메소드 상세

ComboBoxMapper() 보호된 메소드

Constructor to initialise a new instance of the class
protected ComboBoxMapper ( IComboBox comboBox, string propName, bool isReadOnly, IControlFactory factory ) : System.Collections.Generic
comboBox IComboBox The ComboBox object 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 to create controls or strategies e.g.
리턴 System.Collections.Generic

SetupComboBoxItems() 공개 추상적인 메소드

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

프로퍼티 상세

_collection 보호되어 있는 프로퍼티

The actual Dictionary{TKey,TValue} of values that will be displayed in the combo box. This is a key value dictionary where the key contains the value that will be displayed in the ComboBox and the Value is the Unique identifier for the record. An object identifier (IBusinessObject.ID - IPrimaryKey.ObjectID) in the case of a BusinessObjectLookupList. or the Primary Key (field or composite fileds) in the case of a DatabaseLookupList or the key value for a SimpleLookupList. The Application developer can of course implement any other ILookupList that they require.
protected Dictionary _collection
리턴 string>.Dictionary

_comboBox 보호되어 있는 프로퍼티

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

_rightClickEnabled 보호되어 있는 프로퍼티

A boolean to enable or disable right click handling for this IComboBox. Right click handling allows the user to right click and from this a form to allow the editing of Values in the IComboBox. This is only applicable by default to BusinessObjectLookupList or a custom ILookupList defined by the user.
protected bool _rightClickEnabled
리턴 bool