C# Class Habanero.Faces.Base.ComboBoxMapper

Wraps/Decorates a IComboBox in order to display and capture a lookup property of the business object
Inheritance: ControlMapper
ファイルを表示 Open project: Chillisoft/habanero.faces

Protected Properties

Property Type Description
_collection string>.Dictionary
_comboBox IComboBox
_rightClickEnabled bool

Public Methods

Method Description
SetupComboBoxItems ( ) : void

Sets up the items to be listed in the ComboBox

Protected Methods

Method Description
ComboBoxMapper ( IComboBox comboBox, string propName, bool isReadOnly, IControlFactory factory ) : System.Collections.Generic

Constructor to initialise a new instance of the class

Method Details

ComboBoxMapper() protected method

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.
return System.Collections.Generic

SetupComboBoxItems() public abstract method

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

Property Details

_collection protected_oe property

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
return string>.Dictionary

_comboBox protected_oe property

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

_rightClickEnabled protected_oe property

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
return bool