TextValidator validates text controls, providing a variety of filtering behaviours.
For more information, please see Validator overview.
Validator overview, Validator,
GenericValidator
Copy constructor.
TextValidator.new(%(arg-type)Integer% style = FILTER_NONE, String valPtr = nil)Constructor, taking a style and optional pointer to a String variable.
FILTER_NONE | No filtering takes place. |
FILTER_ASCII | Non-ASCII characters are filtered out. |
FILTER_ALPHA | Non-alpha characters are filtered out. |
FILTER_ALPHANUMERIC | Non-alphanumeric characters are filtered out. |
FILTER_NUMERIC | Non-numeric characters are filtered out. |
FILTER_INCLUDE_LIST | Use an include list. The validatorchecks if the user input is on the list, complaining if not. See TextValidator#set_includes. |
FILTER_EXCLUDE_LIST | Use an exclude list. The validatorchecks if the user input is on the list, complaining if it is. See TextValidator#set_excludes. |
FILTER_INCLUDE_CHAR_LIST | Use an include list. The validatorchecks if each input character is in the list (one character per list element), complaining if not.See TextValidator#set_includes. |
FILTER_EXCLUDE_CHAR_LIST | Use an include list. The validatorchecks if each input character is in the list (one character per list element), complaining if it is.See TextValidator#set_excludes. |
Clones the text validator using the copy constructor.
Returns a reference to the exclude list (the list of invalid values).
Returns a reference to the include list (the list of valid values).
Returns the validator style.
Receives character input from the window and filters it according to the
current validator style.
Sets the exclude list (invalid values for the user input).
Sets the include list (valid values for the user input).
Sets the validator style.
Transfers the value in the text control to the string.
Transfers the string value to the text control.
Validates the window contents against the include or exclude lists, depending
on the validator style.
[This page automatically generated from the Textile source at 2023-06-03 08:07:32 +0000]