C# Класс Habanero.Faces.Base.ComboBoxMapper

Wraps/Decorates a IComboBox in order to display and capture a lookup property of the business object
Наследование: ControlMapper
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
_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