Guys,

   I developed a component for Flex called MasterTextInput. Fully Open
Source project and created on Google Code.
The MasterTextInput extends from standard TextInput class with new
features and facilities implemented to help us in our day-to-day.

   Below the list of features already developed in this version v0.1:

== AUTO CASE TYPE TEXT == 
Desc: Convert the text automatically typed in lowercase or uppercase.
Property: capsType ()
Values:
     - normal: No case [DEFAULT]
     - lowercase: convert in Lower Case
     - upercase: convert in Uper Case
     - init: Convert the first letter of each word in Upercase.

== AUTO TAB ON KEY PRESS <ENTER> ==
Desc: Automatically puts the focus on the next component when to pressed
the <Enter> key. Performs the same function <TAB> key.
Property: nextFocusOnEnter ()
Values:
     - True: Enable function [DEFAULT]
     - False: Disable function
Events:
     - EnterPressed: Shot by pressing the <ENTER> key. It can be used
for customized implementations.

== AUTO RESTRICT ==
Desc: Restrictions on input of text already implemented.
Property: onlyRestrict ()
Values:
     - None: Do not place restrictions [DEFAULT]
     - Number: Accepts only numeric characters
     - Alphabetic: Accepts only text
     - AlphabeticNoSpecial: Accepts only text, but does not accept
special characters like: @ - / * & ...
Note: For customized restrictions continue using the property Restrict
().

== EMBEDED VALIDATORS ==
Desc: Embedded Validation. Will no longer be necessary to create
<Validators> for each field. Already there is the automatic validations
only setting a property of MasterTextInput. Validation of the messages
are automatically translated into Portuguese / English / Spanish without
the need for any kind of implementation.

Property: validator ()
Values:
     - none: No automatic validation [DEFAULT]
     - email: Validation of E-mail
     - phone: Validation of Phone Number
     - number: Validation of number
     - string: Validation of string
     - date: Validation of date
Remarks:
     - All specific properties to each validator also exists in
MasterTextInput. Eg. FormatInput validator to date, MaxValue for Number,
MaxLenght for String and so for all other properties patterns of
validators.
     - There is a public object called "currentValidator" he will always
point to the current validator of his MasterTextInput, so you can track
any changes of the validator dynamically, linking it to an Array for
grouped validation and any other function.
     - The properties Trigger () and triggerEvent () exist in
MasterTextInput in order to define when will be triggered the validation
of the field. The default is to quit when the focus of the component.

Property: ValidationLanguage ()
Desc: This property will be the language that will be displayed
Validators messages.
Values:
     - Portuguese: All messages are in Portuguese for validation.
[DEFAULT]
     - English: Messages of validation in English.
     - Spanish: Messages of validation in Spanish.
Remarks:
     - You can change the language dynamically just setting this
property by Action Script.

== CLEAR BUTTON ==
Desc: Will display a button with an "X" icon. When click the button, the
field will be cleared.
Property: showClearButton ()
Values:
     - True: Display button [DEFAULT]
     - False: Do not show button

== Deployments in progress for version v0.2:
* Auto formatters
    - Format DATE
    - Zip Format
    - Format Phone
    - Custom formatting: ###.###.##-##
* Undo and Redo 
* Prompt Label

I would ask those who are interested, make the download from the site of
the project.
Please tests and contribute with new ideas to be implemented.

Project website: http://code.google.com/p/mastertextinput/
My site: http://www.flexpernambuco.com.br/
suggestions to: [EMAIL PROTECTED]

I hope you enjoy!

Regards,

Juliano Mendes

Reply via email to