public enum ValidationStrategy extends java.lang.Enum<ValidationStrategy>
Enum Constant and Description |
---|
DEFAULT
Use whatever is generally most appropriate for this component
|
INPUT_VERIFIER
Validate using JComponent.setInputVerifier
|
ON_CHANGE_OR_ACTION
Validate on a document change or action performed or change event
|
ON_FOCUS_LOSS
Validate when focus is lost
|
Modifier and Type | Method and Description |
---|---|
static ValidationStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ValidationStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ValidationStrategy DEFAULT
public static final ValidationStrategy ON_FOCUS_LOSS
public static final ValidationStrategy ON_CHANGE_OR_ACTION
public static final ValidationStrategy INPUT_VERIFIER
public static ValidationStrategy[] values()
for (ValidationStrategy c : ValidationStrategy.values()) System.out.println(c);
public static ValidationStrategy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is null