- All Implemented Interfaces:
Serializable
,Comparable<VTextField.ErrorPolicy>
- Enclosing class:
- VTextField
Error Policy.
These options determine how validation errors are handled.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that an erroneous new value should be completely removed.Indicates that the new value in the text field should be preserved so that the user can edit it.Indicates that an erroneous new value should be replaced with the old value so the user can start over from a known value. -
Method Summary
Modifier and TypeMethodDescriptionstatic VTextField.ErrorPolicy
Returns the enum constant of this type with the specified name.static VTextField.ErrorPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
USE_NEW_VALUE
Indicates that the new value in the text field should be preserved so that the user can edit it. An invalid new value will not be returned byVTextField.getValidatedText()
or used byVTextField.fireActionPerformed()
. -
USE_OLD_VALUE
Indicates that an erroneous new value should be replaced with the old value so the user can start over from a known value. -
CLEAR_VALUE
Indicates that an erroneous new value should be completely removed.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-