![]() |
![]() |
![]() |
![]() |
Validated Text Field
A Validated Text Field has all of the features of a Text Field plus the ability to ensure that the user can only enter text which matches a particular data type. Its properties page includes a choice field that lets the user choose the validation type. The validation types are
- Null no validation
- Byte integers from -128 to 127
- Short integers from -32768 to 32767
- Integer integers from -2147483648 to 2147483647
- Long integers from -9223372036854775808 to 9223372036854775807
- Character a single character
- Float floating point from 1.4e-45 to 3.4e+38
- Double floating point from 4.9e-324 to 1.8e+308
- String any string, no validation
- Boolean true or false
- Phone (000)000-0000
- Social Security 000-00-0000
- Zip 00000
- Zip+4 00000-0000
- Dollar Amount $0.00
- Time 00:00am
- Date 00/00/00
- Date2000 00/00/0000
- Identifier an identifier (variable name) according to the rules of Java
A Validated Text Field will generate a TextEvent whenever the user modifies the field's text.
A Validated Text Field will generate an ActionEvent whenever the user presses the 'Enter' key while the field has the focus.
Data Representations, Inc. http://www.datarepresentations.com support@datarepresentations.com sales@datarepresentations.com |
![]() |
![]() |
![]() |
![]() |