Package com.codename1.ui.validation
package com.codename1.ui.validation
The validation framework allows us to mark invalid input in text components and disable components
in the case of invalid input
-
ClassDescriptionTo perform validation we add a constraint to a validator, a constraint defines whether a value if valid for a given objectCreates a validation constraint to ensure input value exists in a list of itemsGroups several constraints as if they are one constraintCreates a validation constraint based on minimum input lengthNegates a group of constraints, such that, if any of its child constraints is true, it returns false.Forces the value to be a number potentially within specific boundsCreates a validation constraint based on a regular expressionBinds validation constraints to form elements, when validation fails it can be highlighted directly on the component via an emblem or change of the UIID (to original UIID name + "Invalid" e.g. "TextFieldInvalid").Indicates the validation failure modes