- All Implemented Interfaces:
Serializable
,Comparable<TimeTextField.Mode>
- Enclosing class:
- TimeTextField
TimeTextField Modes.
These specify whether additional characters are allowed in
the input field of a TimeTextField.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndefinite Mode.Plain mode.Query Mode.Combined Mode. -
Method Summary
Modifier and TypeMethodDescriptionstatic TimeTextField.Mode
Returns the enum constant of this type with the specified name.static TimeTextField.Mode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PLAIN
Plain mode. No special characters are allowed. -
QUERY
Query Mode. If the Text field contains the value, '?', that indicates that an application will interactively obtain the value from the user in some way (e.g., via a dialog box that is dismissed when the time interval expires -
INDEFINITE
Indefinite Mode. If the TimeTextField contains the value, '*', that indicates that the time interval is indefinite and will be determined autonomously by an application. -
QUERY_AND_INDEFINITE
Combined Mode. A combination of both QUERY and INDEFINITE modes, as determined by a presence of either a '*' or a '?' in the text field.
-
-
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
-