Enum CheckTimeEnum
- java.lang.Object
-
- java.lang.Enum<CheckTimeEnum>
-
- de.knightsoftnet.validators.client.editor.CheckTimeEnum
-
- All Implemented Interfaces:
Serializable,Comparable<CheckTimeEnum>
public enum CheckTimeEnum extends Enum<CheckTimeEnum>
Enumeration of times when check should be done.- Author:
- Manfred Tremmel
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CheckTimeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static CheckTimeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ON_KEY_UP
public static final CheckTimeEnum ON_KEY_UP
Check on every key up, so when ever a sign is typed in, a check is done. It includes a check on change and a last check on submit. This is the default setting.
-
ON_CHANGE
public static final CheckTimeEnum ON_CHANGE
Check when ever a field sends a change event, so text fields initiates a validation if cursor leafs them. It includes a check on on submit.
-
ON_SUBMIT
public static final CheckTimeEnum ON_SUBMIT
Check is done, when submit.
-
-
Method Detail
-
values
public static CheckTimeEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CheckTimeEnum c : CheckTimeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CheckTimeEnum valueOf(String name)
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
-
-