C# Class Habanero.Faces.Win.TextBoxMapperStrategyWin

Provides a set of behaviour strategies that can be applied to a TextBox depending on the environment
Inheritance: ITextBoxMapperStrategy
Show file Open project: Chillisoft/habanero.faces

Public Methods

Method Description
AddKeyPressEventHandler ( TextBoxMapper mapper, IBOProp boProp ) : void

Adds key press event handlers that carry out actions like limiting the input of certain characters, depending on the type of the property

AddUpdateBoPropOnTextChangedHandler ( TextBoxMapper mapper, IBOProp boProp ) : void

Private Methods

Method Description
IsValidCharacter ( char character ) : bool

Indicates if the given character being typed is valid, based on the text already entered in the textbox. For instance, if the property type is an integer, this method will return false for a non-numeric character (apart from a negative sign).

KeyPressEventHandler ( object sender, System e ) : void
UpdateBoPropWithTextFromTextBox ( object sender, EventArgs e ) : void

Method Details

AddKeyPressEventHandler() public method

Adds key press event handlers that carry out actions like limiting the input of certain characters, depending on the type of the property
public AddKeyPressEventHandler ( TextBoxMapper mapper, IBOProp boProp ) : void
mapper Habanero.Faces.Base.TextBoxMapper The TextBox mapper
boProp IBOProp The property being mapped
return void

AddUpdateBoPropOnTextChangedHandler() public method

public AddUpdateBoPropOnTextChangedHandler ( TextBoxMapper mapper, IBOProp boProp ) : void
mapper Habanero.Faces.Base.TextBoxMapper
boProp IBOProp
return void