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
Afficher le fichier Open project: Chillisoft/habanero.faces

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat void

AddUpdateBoPropOnTextChangedHandler() public méthode

public AddUpdateBoPropOnTextChangedHandler ( TextBoxMapper mapper, IBOProp boProp ) : void
mapper Habanero.Faces.Base.TextBoxMapper
boProp IBOProp
Résultat void