C# 클래스 Habanero.Faces.Win.ControlMapperStrategyWin

Provides a set of behaviour strategies that can be applied to a control depending on the environment
상속: IControlMapperStrategy
파일 보기 프로젝트 열기: Chillisoft/habanero.faces 1 사용 예제들

공개 메소드들

메소드 설명
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