C# Класс Habanero.Faces.Win.ControlMapperStrategyWin

Provides a set of behaviour strategies that can be applied to a control depending on the environment
Наследование: IControlMapperStrategy
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddCurrentBOPropHandlers ( ControlMapper mapper, IBOProp boProp ) : void

Adds handlers to events of a current business object property.

AddKeyPressEventHandler ( IControlHabanero control ) : void

Handles the default key press behaviours on a control. This is typically used to change the handling of the enter key (such as having the enter key cause focus to move to the next control).

RemoveCurrentBOPropHandlers ( ControlMapper mapper, IBOProp boProp ) : void

Removes handlers to events of a current business object property. It is essential that if the AddCurrentBoPropHandlers is implemented then this is implemented such that editing a business object that is no longer being shown on the control does not does not update the value in the control.

Защищенные методы

Метод Описание
CtlKeyUpHandler ( object sender, KeyEventArgs e ) : void

A handler to deal with the case where a key has been released. If the key is an Enter key, focus moves to the next item in the tab order.

This has been made protected for the purposes of testing. Since the event based testing using NUnitForms does not work on our build server. This method should not be used in normal production code.

GetFirstControl ( Control parentControl, Control control ) : Control

Provides the first control in the tab order on a control

GetNextControlInTabOrder ( Control parentControl, Control control ) : Control

Provides the next item in the tab order on a control

Приватные методы

Метод Описание
CtlKeyDownHandler ( object sender, KeyEventArgs e ) : void

A handler to deal with the case where a key is down.

CtlKeyPressHandler ( object sender, System e ) : void

A handler to deal with the case where a key has been pressed.

GetNextControl ( Control parentControl, Control control ) : Control
GetPreviousControl ( Control parentControl, Control currentControl ) : Control
IsMultiLineTextBox ( ) : bool
SetFocusOnNextControl ( ) : void

Описание методов

AddCurrentBOPropHandlers() публичный Метод

Adds handlers to events of a current business object property.
public AddCurrentBOPropHandlers ( ControlMapper mapper, IBOProp boProp ) : void
mapper Habanero.Faces.Base.ControlMapper The control mapper that maps the business object property to the control
boProp IBOProp The business object property being mapped to the control
Результат void

AddKeyPressEventHandler() публичный Метод

Handles the default key press behaviours on a control. This is typically used to change the handling of the enter key (such as having the enter key cause focus to move to the next control).
public AddKeyPressEventHandler ( IControlHabanero control ) : void
control IControlHabanero The control whose events will be handled
Результат void

CtlKeyUpHandler() защищенный Метод

A handler to deal with the case where a key has been released. If the key is an Enter key, focus moves to the next item in the tab order.
This has been made protected for the purposes of testing. Since the event based testing using NUnitForms does not work on our build server. This method should not be used in normal production code.
protected CtlKeyUpHandler ( object sender, KeyEventArgs e ) : void
sender object The object that notified of the event
e System.Windows.Forms.KeyEventArgs Attached arguments regarding the event
Результат void

GetFirstControl() защищенный статический Метод

Provides the first control in the tab order on a control
protected static GetFirstControl ( Control parentControl, Control control ) : Control
parentControl System.Windows.Forms.Control The parent of the controls in question
control System.Windows.Forms.Control The current control
Результат System.Windows.Forms.Control

GetNextControlInTabOrder() защищенный статический Метод

Provides the next item in the tab order on a control
protected static GetNextControlInTabOrder ( Control parentControl, Control control ) : Control
parentControl System.Windows.Forms.Control The parent of the controls in question
control System.Windows.Forms.Control The current control
Результат System.Windows.Forms.Control

RemoveCurrentBOPropHandlers() публичный Метод

Removes handlers to events of a current business object property. It is essential that if the AddCurrentBoPropHandlers is implemented then this is implemented such that editing a business object that is no longer being shown on the control does not does not update the value in the control.
public RemoveCurrentBOPropHandlers ( ControlMapper mapper, IBOProp boProp ) : void
mapper Habanero.Faces.Base.ControlMapper The control mapper that maps the business object property to the control
boProp IBOProp The business object property being mapped to the control
Результат void