Свойство | Type | Description | |
---|---|---|---|
_attributes | |||
_businessObject | IBusinessObject | ||
_logger | IHabaneroLogger |
Свойство | Type | Description | |
---|---|---|---|
AddCurrentBOPropHandlers | void | ||
AddKeyPressHandlers | void | ||
CheckReadWriteRules | bool | ||
DoesVirtualPropertyHaveSetter | bool | ||
IsPropertyReflective | bool | ||
IsPropertyViaRelationship | bool | ||
IsTypeOfIControlMapper | bool | ||
RemoveCurrentBOPropHandlers | void |
Méthode | Description | |
---|---|---|
ApplyChangesToBusinessObject ( ) : void |
Updates the properties on the represented business object
|
|
BOPropValueUpdatedHandler ( object sender, |
Handler to carry out changes where the value of a business object property has changed
|
|
Create ( IControlHabanero ctl, string propertyName ) : IControlMapper |
Creates a new control mapper of a specified type. If no 'mapperTypeName' has been specified, an appropriate mapper for standard controls will be assigned, depending on the type of control.
|
|
Create ( |
Create a Control Mapper based on the mapperType
|
|
Create ( string mapperTypeName, IControlHabanero ctl, string propertyName ) : IControlMapper |
Creates a new control mapper of a specified type. If no 'mapperTypeName' has been specified, an appropriate mapper for standard controls will be assigned, depending on the type of control.
|
|
Create ( string mapperTypeName, string mapperAssembly, IControlHabanero ctl, string propertyName, bool isReadOnly, IControlFactory controlFactory ) : IControlMapper |
Creates a new control mapper of a specified type. If no 'mapperTypeName' has been specified, an appropriate mapper for standard controls will be assigned, depending on the type of control.
|
|
CurrentBOProp ( ) : IBOProp |
Returns the IBOProp object being mapped to this control
|
|
GetErrorMessage ( ) : string |
Returns the Error Provider's Error message.
|
|
SetPropertyAttributes ( |
A form field can have attributes defined in the class definition. These attributes are passed to the control mapper via a hashtable so that the control mapper can adjust its behaviour accordingly.
|
|
UpdateControlValueFromBusinessObject ( ) : void |
Updates the value on the control from the corresponding property on the represented IControlMapper.BusinessObject. This also updates the Error Provider with any Error Messages.
|
|
UpdateErrorProviderErrorMessage ( ) : void |
Sets the Error Provider Error with the appropriate value for the property e.g. if it is invalid then sets the error provider with the invalid reason else sets the error provider with a zero length string.
|
Méthode | Description | |
---|---|---|
ControlMapper ( IControlHabanero ctl, string propName, bool isReadOnly, IControlFactory factory ) : System |
Constructor to instantiate a new instance of the class
|
|
GetPropertyValue ( ) : object |
Returns the property value of the business object being mapped
|
|
InitialiseWithAttributes ( ) : void |
Initialises the control using the attributes already provided, using SetPropertyAttributes.
|
|
InternalUpdateControlValueFromBo ( ) : void |
Updates the value on the control from the corresponding property on the represented IControlMapper.BusinessObject.
|
|
IsPropertyVirtual ( ) : bool |
is the property a virtual property i.e. is it loaded via reflection or via a relationship.
|
|
OnBusinessObjectChanged ( ) : void |
An overridable method to provide custom logic to carry out when the business object is changed
|
|
SetError ( string errorMessage ) : void | ||
SetPropertyValue ( object value ) : void |
Sets the property value to that provided. If the property value is invalid, the error provider will be given the reason why the value is invalid.
|
|
UpdateControlVisualState ( bool editable ) : void |
Update the Visual state of the control so as to differentiate between Editable and none editable controls.
|
|
UpdateIsEditable ( ) : void |
Updates the isEditable flag and updates the control according to the current state
|
Méthode | Description | |
---|---|---|
AddCurrentBOPropHandlers ( ) : void | ||
AddKeyPressHandlers ( ) : void | ||
CheckReadWriteRules ( ) : bool | ||
DoesVirtualPropertyHaveSetter ( ) : bool | ||
IsPropertyReflective ( ) : bool | ||
IsPropertyViaRelationship ( ) : bool | ||
IsTypeOfIControlMapper ( |
||
RemoveCurrentBOPropHandlers ( ) : void |
public abstract ApplyChangesToBusinessObject ( ) : void | ||
Résultat | void |
public BOPropValueUpdatedHandler ( object sender, |
||
sender | object | The object that notified of the event |
e | Attached arguments regarding the event | |
Résultat | void |
protected ControlMapper ( IControlHabanero ctl, string propName, bool isReadOnly, IControlFactory factory ) : System | ||
ctl | IControlHabanero | The control object to map |
propName | string | The property name |
isReadOnly | bool | Whether the control is read only. /// If so, it then becomes disabled. If not, /// handlers are assigned to manage key presses. |
factory | IControlFactory | |
Résultat | System |
public static Create ( IControlHabanero ctl, string propertyName ) : IControlMapper | ||
ctl | IControlHabanero | The control to be mapped |
propertyName | string | The property name |
Résultat | IControlMapper |
public static Create ( |
||
mapperType | ||
ctl | IControlHabanero | The control to be mapped |
propertyName | string | The property name |
isReadOnly | bool | Whether the control is read-only |
controlFactory | IControlFactory | The control factory that is being set on the Mapper |
Résultat | IControlMapper |
public static Create ( string mapperTypeName, IControlHabanero ctl, string propertyName ) : IControlMapper | ||
mapperTypeName | string | The class name of the mapper type /// (e.g. ComboBoxMapper). The current namespace of this /// ControlMapper class will then be prefixed to the name. |
ctl | IControlHabanero | The control to be mapped |
propertyName | string | The property name |
Résultat | IControlMapper |
public static Create ( string mapperTypeName, string mapperAssembly, IControlHabanero ctl, string propertyName, bool isReadOnly, IControlFactory controlFactory ) : IControlMapper | ||
mapperTypeName | string | The class name of the mapper type /// (e.g. ComboBoxMapper). The current namespace of this /// ControlMapper class will then be prefixed to the name. |
mapperAssembly | string | The assembly where the mapper is /// located |
ctl | IControlHabanero | The control to be mapped |
propertyName | string | The property name |
isReadOnly | bool | Whether the control is read-only |
controlFactory | IControlFactory | The control factory |
Résultat | IControlMapper |
protected InitialiseWithAttributes ( ) : void | ||
Résultat | void |
protected abstract InternalUpdateControlValueFromBo ( ) : void | ||
Résultat | void |
protected OnBusinessObjectChanged ( ) : void | ||
Résultat | void |
protected SetError ( string errorMessage ) : void | ||
errorMessage | string | |
Résultat | void |
public SetPropertyAttributes ( |
||
attributes | A hashtable of attributes, which consists /// of name-value pairs, where name is the attribute name. This is usually /// set in the XML definitions for the class's user interface. | |
Résultat | void |
protected SetPropertyValue ( object value ) : void | ||
value | object | |
Résultat | void |
public UpdateControlValueFromBusinessObject ( ) : void | ||
Résultat | void |
protected UpdateControlVisualState ( bool editable ) : void | ||
editable | bool | |
Résultat | void |
public UpdateErrorProviderErrorMessage ( ) : void | ||
Résultat | void |
protected Hashtable,System.Collections _attributes | ||
Résultat |
protected IBusinessObject _businessObject | ||
Résultat | IBusinessObject |