C# Class Habanero.Faces.Base.ExtendedTextBoxMapper

The mapper for IExtendedTextBox.
Inheritance: ControlMapper
ファイルを表示 Open project: Chillisoft/habanero.faces Class Usage Examples

Protected Properties

Property Type Description
_loadCollectionAfterFormLoad bool

Public Methods

Method Description
ApplyChangesToBusinessObject ( ) : void

Updates the properties on the represented business object

ExtendedTextBoxMapper ( IExtendedTextBox ctl, string propName, bool isReadOnly, IControlFactory controlFactory ) : System

Constructs the mapper for IExtendedComboBox.

SetupPopupForm ( ) : 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.

Protected Methods

Method Description
CancelClickHandler ( object sender, EventArgs e ) : void

Handler for the Cancel click

CloseForm ( ) : void

GetLookupTypeClassDef ( Type &classType ) : IClassDef
GetReadOnlyGrid ( IControlHabanero parent = null ) : IReadOnlyGridControl

Returns the IReadOnlyGrid that is being used to select the RelatedBusinessObject.

GetSelectedBusinessObject ( ) : IBusinessObject

The BusinessObject that is set on the IBOGridAndEditorControl.

HandlePopUpFormClosedEvent ( object sender, CancelEventArgs 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) and Sets the Currently selected Business Object.ToString as the text of the TextBox

InternalUpdateControlValueFromBo ( ) : void

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

SelectClickHandler ( object sender, EventArgs e ) : void

Handler for the Select click

Private Methods

Method Description
CreatePopupForm ( ) : void
GenerateSelectionInterface ( IClassDef lookupTypeClassDef, ISupportAsyncLoadingCollection &viewer, int &minHeight, int &minWidth, IGenericGridFilterControl &filterControlPanel ) : IControlHabanero
GetCollection ( Type classType ) : IBusinessObjectCollection
LoadSelectionCollection ( ISupportAsyncLoadingCollection viewer, Type classType ) : void
SetupSelectButtonGroupControl ( ) : void

Method Details

ApplyChangesToBusinessObject() public method

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

CancelClickHandler() protected method

Handler for the Cancel click
protected CancelClickHandler ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

CloseForm() protected method

protected CloseForm ( ) : void
return void

ExtendedTextBoxMapper() public method

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

GetLookupTypeClassDef() protected method

protected GetLookupTypeClassDef ( Type &classType ) : IClassDef
classType System.Type
return IClassDef

GetReadOnlyGrid() protected method

Returns the IReadOnlyGrid that is being used to select the RelatedBusinessObject.
protected GetReadOnlyGrid ( IControlHabanero parent = null ) : IReadOnlyGridControl
parent IControlHabanero
return IReadOnlyGridControl

GetSelectedBusinessObject() protected method

The BusinessObject that is set on the IBOGridAndEditorControl.
protected GetSelectedBusinessObject ( ) : IBusinessObject
return IBusinessObject

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) and Sets the Currently selected Business Object.ToString as the text of the TextBox
protected HandlePopUpFormClosedEvent ( object sender, CancelEventArgs e ) : void
sender object
e CancelEventArgs
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

SelectClickHandler() protected method

Handler for the Select click
protected SelectClickHandler ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

SetupPopupForm() 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 SetupPopupForm ( ) : void
return void

Property Details

_loadCollectionAfterFormLoad protected_oe property

protected bool _loadCollectionAfterFormLoad
return bool