C# Class Habanero.Faces.Base.ExtendedComboBoxMapper

The mapper for IExtendedComboBox.
Inheritance: ControlMapper
Show file Open project: Chillisoft/habanero.faces Class Usage Examples

Public Methods

Method Description
ApplyChangesToBusinessObject ( ) : void

Updates the properties on the represented business object

ExtendedComboBoxMapper ( IExtendedComboBox ctl, string propName, bool isReadOnly, IControlFactory controlFactory ) : System

Constructs the mapper for IExtendedComboBox.

ShowPopupForm ( ) : void

Shows the popup form that is displayed when the button is clicked. This popup form is used to edit the BusinessObjects that fill the combobox.

UpdateControlValueFromBusinessObject ( ) : void

Updates the value on the control from the corresponding property on the represented IControlMapper.BusinessObject

Protected Methods

Method Description
GetIBOGridAndEditorControl ( ) : IBOGridAndEditorControl

The IBOGridAndEditorControl that is being popped up by this mapper.

HandlePopUpFormClosedEvent ( object sender, EventArgs e ) : void

Handles the Closing of the Popup form. By default this saves the Business Object that is currently selectedin the Popup (if there is one) Reloads the Combo Box using ReloadLookupValues. and Sets the Currently selected Business Object as the selected Item for the ComboBox

InternalUpdateControlValueFromBo ( ) : void

Updates the value on the control from the corresponding property on the represented IControlMapper.BusinessObject

ReloadLookupValues ( ) : void

Reloads the ComboBox.

Private Methods

Method Description
CheckBoNotNull ( ) : void
GetCollection ( Type classType ) : IBusinessObjectCollection
GetLookupTypeClassDef ( Type &classType ) : IClassDef

Method Details

ApplyChangesToBusinessObject() public method

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

ExtendedComboBoxMapper() public method

Constructs the mapper for IExtendedComboBox.
public ExtendedComboBoxMapper ( IExtendedComboBox ctl, string propName, bool isReadOnly, IControlFactory controlFactory ) : System
ctl IExtendedComboBox
propName string
isReadOnly bool
controlFactory IControlFactory
return System

GetIBOGridAndEditorControl() protected method

The IBOGridAndEditorControl that is being popped up by this mapper.
protected GetIBOGridAndEditorControl ( ) : IBOGridAndEditorControl
return IBOGridAndEditorControl

HandlePopUpFormClosedEvent() protected method

Handles the Closing of the Popup form. By default this saves the Business Object that is currently selectedin the Popup (if there is one) Reloads the Combo Box using ReloadLookupValues. and Sets the Currently selected Business Object as the selected Item for the ComboBox
protected HandlePopUpFormClosedEvent ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

InternalUpdateControlValueFromBo() protected method

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

ReloadLookupValues() protected method

Reloads the ComboBox.
protected ReloadLookupValues ( ) : void
return void

ShowPopupForm() public method

Shows the popup form that is displayed when the button is clicked. This popup form is used to edit the BusinessObjects that fill the combobox.
public ShowPopupForm ( ) : void
return void

UpdateControlValueFromBusinessObject() public method

Updates the value on the control from the corresponding property on the represented IControlMapper.BusinessObject
public UpdateControlValueFromBusinessObject ( ) : void
return void