|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ValidationStrategy>
org.netbeans.validation.api.ui.ValidationStrategy
public enum ValidationStrategy
Determines what event on the component will trigger running validation. For example, if validation of a text component's content involves expensive calculation which could slow down the UI, you may want to use ON_FOCUS_LOSS; however ON_CHANGE_OR_ACTION (reacting every time a key is typed) provides more satisfactory user experience.
Enum Constant Summary | |
---|---|
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 |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Method Detail |
---|
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 name
java.lang.NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |